Class DefaultContextRepository
java.lang.Object
com.hybris.merchandising.context.impl.DefaultContextRepository
- All Implemented Interfaces:
ContextRepository,Serializable
Default implementation of a way to store context information.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of the context store, backed by a ConcurrentHashMap. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear out the entire context storeReturn a single ContextMap object for the given namekeys()Returns an enumeration of all keys.voidput(String name, ContextMap context) Add a single ContextMap object to the context storeintsize()return the size of the current context store
-
Constructor Details
-
DefaultContextRepository
public DefaultContextRepository()Creates a new instance of the context store, backed by a ConcurrentHashMap.
-
-
Method Details
-
get
Description copied from interface:ContextRepositoryReturn a single ContextMap object for the given name- Specified by:
getin interfaceContextRepository- Returns:
-
put
Description copied from interface:ContextRepositoryAdd a single ContextMap object to the context store- Specified by:
putin interfaceContextRepository
-
clear
public void clear()Description copied from interface:ContextRepositoryClear out the entire context store- Specified by:
clearin interfaceContextRepository
-
size
public int size()Description copied from interface:ContextRepositoryreturn the size of the current context store- Specified by:
sizein interfaceContextRepository- Returns:
-
keys
Description copied from interface:ContextRepositoryReturns an enumeration of all keys.- Specified by:
keysin interfaceContextRepository- Returns:
-