Class ThreadLocalConfigurationPropertiesHolder
java.lang.Object
org.opensaml.core.config.provider.ThreadLocalConfigurationPropertiesHolder
A container class for holding a {link
ThreadLocal copy of a Properties instance.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ThreadLocal<Properties>ThreadLocal storage for the properties set. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclear()Clear the thread-local configuration Properties instance.static PropertiesGet the thread-local configuration Properties instance.static voidsetProperties(Properties newProperties) Set the thread-local configuration Properties instance.
-
Field Details
-
PROPERTIES
ThreadLocal storage for the properties set.
-
-
Constructor Details
-
ThreadLocalConfigurationPropertiesHolder
private ThreadLocalConfigurationPropertiesHolder()Constructor.
-
-
Method Details
-
getProperties
Get the thread-local configuration Properties instance.- Returns:
- the thread-local Properties
-
setProperties
Set the thread-local configuration Properties instance.- Parameters:
newProperties- the new thread-local Properties instance
-
clear
public static void clear()Clear the thread-local configuration Properties instance.
-