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, getLogger
doInitialized, getInitializationState, initialize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createContext, createContext
public AbstractGenericContextFactory()
public MutableGenericContext createContext()
GenericContextFactory
MutableGenericContext
. 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 GenericContextFactory
Copyright © 2001–2016 mmm-Team. All rights reserved.