Class DefaultContextRepository
- java.lang.Object
-
- com.hybris.merchandising.context.impl.DefaultContextRepository
-
- All Implemented Interfaces:
ContextRepository,java.io.Serializable
public class DefaultContextRepository extends java.lang.Object implements ContextRepository, java.io.Serializable
Default implementation of a way to store context information.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultContextRepository()Creates a new instance of the context store, backed by a ConcurrentHashMap.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clear out the entire context storeContextMapget(java.lang.String name)Return a single ContextMap object for the given namejava.util.Enumeration<java.lang.String>keys()Returns an enumeration of all keys.voidput(java.lang.String name, ContextMap context)Add a single ContextMap object to the context storeintsize()return the size of the current context store
-
-
-
Method Detail
-
get
public ContextMap get(java.lang.String name)
Description copied from interface:ContextRepositoryReturn a single ContextMap object for the given name- Specified by:
getin interfaceContextRepository- Returns:
-
put
public void put(java.lang.String name, ContextMap context)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
public java.util.Enumeration<java.lang.String> keys()
Description copied from interface:ContextRepositoryReturns an enumeration of all keys.- Specified by:
keysin interfaceContextRepository- Returns:
-
-