Class DefaultThreadContext
java.lang.Object
de.hybris.platform.commerceservices.threadcontext.impl.DefaultThreadContext
- All Implemented Interfaces:
ThreadContext
Default implementation of the ThreadContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TgetAttribute(String name) Returns for the given session attribute name the valuevoidremoveAttribute(String name) Removes the given attribute from the current session.voidsetAttribute(String name, Object value) Sets the given value Object to the Session as attribute with the given name
-
Constructor Details
-
DefaultThreadContext
public DefaultThreadContext() -
DefaultThreadContext
-
-
Method Details
-
setAttribute
Description copied from interface:ThreadContextSets the given value Object to the Session as attribute with the given name- Specified by:
setAttributein interfaceThreadContext- Parameters:
name- the name of the attributevalue- the value to be set
-
getAttribute
Description copied from interface:ThreadContextReturns for the given session attribute name the value- Specified by:
getAttributein interfaceThreadContext- Parameters:
name- the attribute name- Returns:
nullif no attribute with the given name is stored in the session
-
removeAttribute
Description copied from interface:ThreadContextRemoves the given attribute from the current session. Do nothing if the attribute doesn't exists in the session.- Specified by:
removeAttributein interfaceThreadContext- Parameters:
name- the attribute name
-