public final class ThreadLocalStorage extends InheritableThreadLocal<Map<String,Object>>
ThreadLocal which manages generic properties.| Modifier and Type | Method and Description |
|---|---|
static Object |
getPropertyValue(String propertyName)
Gets a property value.
|
protected Map<String,Object> |
initialValue() |
static Object |
removeProperty(String propertyName)
Removes a property.
|
static Object |
setPropertyValue(String propertyName,
Object propertyValue)
Sets a property value.
|
childValueget, remove, set, withInitialpublic static Object getPropertyValue(String propertyName)
propertyName - the property namepublic static Object setPropertyValue(String propertyName, Object propertyValue)
propertyName - the property namepropertyValue - the property valuepublic static Object removeProperty(String propertyName)
propertyName - the property nameprotected Map<String,Object> initialValue()
initialValue in class ThreadLocal<Map<String,Object>>Copyright © 2002–2019 SoftSmithy. All rights reserved.