public abstract class AbstractGenericContextFactory extends AbstractLoggableComponent implements GenericContextFactory
GenericContextFactory interface.| Constructor and Description |
|---|
AbstractGenericContextFactory()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
MutableGenericContext |
createContext()
This method creates a new instance of a
MutableGenericContext. |
createLogger, doInitialize, getLoggerdoInitialized, getInitializationState, initializeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateContext, createContextpublic AbstractGenericContextFactory()
public MutableGenericContext createContext()
GenericContextFactoryMutableGenericContext. It will use a
HashMapFactory and delegate to GenericContextFactory.createContext(MapFactory)
. child-contexts are
created and passed to other threads while the original thread is modifying the original context as proved
in the according test-case. However HashMap.get(Object) is not academically thread-safe
so if you need mission-critical safety, you might want to pass
ConcurrentHashMapFactory to GenericContextFactory.createContext(MapFactory).createContext in interface GenericContextFactoryCopyright © 2001–2016 mmm-Team. All rights reserved.