net.sf.mmm.util.context.impl
Class GenericContextFactoryImpl

java.lang.Object
  extended by net.sf.mmm.util.component.base.AbstractComponent
      extended by net.sf.mmm.util.component.base.AbstractLoggableComponent
          extended by net.sf.mmm.util.context.base.AbstractGenericContextFactory
              extended by 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)

Field Summary
private  ComposedValueConverter composedValueConverter
           
 
Constructor Summary
GenericContextFactoryImpl()
          The constructor.
 
Method Summary
 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)
           
 
Methods inherited from class net.sf.mmm.util.context.base.AbstractGenericContextFactory
createContext
 
Methods inherited from class net.sf.mmm.util.component.base.AbstractLoggableComponent
getLogger, setLogger
 
Methods inherited from class net.sf.mmm.util.component.base.AbstractComponent
doInitialized, getInitializationState, initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

composedValueConverter

private ComposedValueConverter composedValueConverter
See Also:
setComposedValueConverter(ComposedValueConverter)
Constructor Detail

GenericContextFactoryImpl

public GenericContextFactoryImpl()
The constructor.

Method Detail

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.