public class GenericContextFactoryImpl extends AbstractGenericContextFactory
GenericContextFactory
.Modifier and Type | Field and Description |
---|---|
private ComposedValueConverter |
composedValueConverter |
Constructor and Description |
---|
GenericContextFactoryImpl()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
MutableGenericContext |
createContext(MapFactory<? extends Map> mapFactory)
This method creates a new instance of a
MutableGenericContext using the given MapFactory . |
MutableGenericContext |
createContext(MapFactory<? extends Map> mapFactory,
GenericValueConverter<Object> valueConverter)
This method creates a new instance of a
MutableGenericContext using the given MapFactory . |
protected void |
doInitialize()
This method performs the actual
initialization . |
void |
setComposedValueConverter(ComposedValueConverter composedValueConverter) |
createContext
createLogger, getLogger
doInitialized, getInitializationState, initialize
private ComposedValueConverter composedValueConverter
@Inject public void setComposedValueConverter(ComposedValueConverter composedValueConverter)
composedValueConverter
- is the composedValueConverter to setprotected void doInitialize()
AbstractComponent
initialization
. It is called when AbstractComponent.initialize()
is
invoked for the first time. super.
AbstractComponent.doInitialize()
.doInitialize
in class AbstractLoggableComponent
public MutableGenericContext createContext(MapFactory<? extends Map> mapFactory)
GenericContextFactory
MutableGenericContext
using the given MapFactory
.mapFactory
- is the factory used to create maps for the underlying context.public MutableGenericContext createContext(MapFactory<? extends Map> mapFactory, GenericValueConverter<Object> valueConverter)
GenericContextFactory
MutableGenericContext
using the given MapFactory
.mapFactory
- is the factory used to create maps for the underlying context.valueConverter
- is the GenericValueConverter
used for
converting
variables if
requested
for a different type.Copyright © 2001–2016 mmm-Team. All rights reserved.