public final class ThreadLocalConfigurationPropertiesHolder
extends java.lang.Object
ThreadLocal copy of a Properties instance.| Modifier and Type | Field and Description |
|---|---|
private static java.lang.ThreadLocal<java.util.Properties> |
properties
ThreadLocal storage for the properties set.
|
| Modifier | Constructor and Description |
|---|---|
private |
ThreadLocalConfigurationPropertiesHolder()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
clear()
Clear the thread-local configuration Properties instance.
|
static java.util.Properties |
getProperties()
Get the thread-local configuration Properties instance.
|
static void |
setProperties(java.util.Properties newProperties)
Set the thread-local configuration Properties instance.
|
@Nonnull private static java.lang.ThreadLocal<java.util.Properties> properties
private ThreadLocalConfigurationPropertiesHolder()
public static java.util.Properties getProperties()
public static void setProperties(java.util.Properties newProperties)
newProperties - the new thread-local Properties instancepublic static void clear()