net.sf.mmm.util.context.impl
Class GenericContextFactoryImpl
java.lang.Object
net.sf.mmm.util.component.base.AbstractComponent
net.sf.mmm.util.component.base.AbstractLoggableComponent
net.sf.mmm.util.context.base.AbstractGenericContextFactory
net.sf.mmm.util.context.impl.GenericContextFactoryImpl
- All Implemented Interfaces:
- GenericContextFactory
@Singleton
@Named
public class GenericContextFactoryImpl
- extends AbstractGenericContextFactory
This is the implementation of the
GenericContextFactory.
- Since:
- 1.1.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
composedValueConverter
private ComposedValueConverter composedValueConverter
- See Also:
setComposedValueConverter(ComposedValueConverter)
GenericContextFactoryImpl
public GenericContextFactoryImpl()
- The constructor.
setComposedValueConverter
@Inject
public void setComposedValueConverter(ComposedValueConverter composedValueConverter)
- Parameters:
composedValueConverter - is the composedValueConverter to set
doInitialize
protected void doInitialize()
- This method performs the actual
initialization. It is
called when AbstractComponent.initialize() is invoked for the first time.
ATTENTION:
When you override this method from a sub-class you need to do a
super.AbstractComponent.doInitialize().
- Overrides:
doInitialize in class AbstractLoggableComponent
createContext
public MutableGenericContext createContext(MapFactory<? extends Map> mapFactory)
- This method creates a new instance of a
MutableGenericContext using
the given MapFactory.
- Parameters:
mapFactory - is the factory used to create maps for the underlying
context.
- Returns:
- the new context.
createContext
public MutableGenericContext createContext(MapFactory<? extends Map> mapFactory,
GenericValueConverter<Object> valueConverter)
- This method creates a new instance of a
MutableGenericContext using
the given MapFactory.
- Parameters:
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.
- Returns:
- the new context.
Copyright © 2001-2010 mmm-Team. All Rights Reserved.