org.spicefactory.cinnamon.config.shared
Class AbstractConfigurationBuilder

java.lang.Object
  extended by org.spicefactory.cinnamon.config.shared.AbstractConfigurationBuilder
All Implemented Interfaces:
ConfigurationBuilder
Direct Known Subclasses:
SpringConfigurationBuilder, XmlConfigurationParser

public abstract class AbstractConfigurationBuilder
extends Object
implements ConfigurationBuilder

Abstract base class for all ConfigurationBuilder implementations.

Author:
Jens Halm

Constructor Summary
AbstractConfigurationBuilder()
           
 
Method Summary
protected  Map<String,Object> getApplicationMap()
          Returns the Map of application attributes (taken from ServletContext in a web application)
protected  Map<String,String> getInitMap()
          Returns the Map of initialization parameters (taken from ServletConfig in a web application).
 void init(Map<String,String> initMap, Map<String,Object> applicationMap)
          Initializes the ServiceFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.spicefactory.cinnamon.config.ConfigurationBuilder
build
 

Constructor Detail

AbstractConfigurationBuilder

public AbstractConfigurationBuilder()
Method Detail

init

public void init(Map<String,String> initMap,
                 Map<String,Object> applicationMap)
Description copied from interface: ConfigurationBuilder
Initializes the ServiceFactory. Will only be called once by the framework at application startup.

Specified by:
init in interface ConfigurationBuilder
Parameters:
initMap - the initialisation parameters (taken from ServletConfig in a web application)
applicationMap - the application attributes (taken from ServletContext in a web application)

getInitMap

protected Map<String,String> getInitMap()
Returns the Map of initialization parameters (taken from ServletConfig in a web application).

Returns:
the initialisation parameters (taken from ServletConfig in a web application)

getApplicationMap

protected Map<String,Object> getApplicationMap()
Returns the Map of application attributes (taken from ServletContext in a web application)

Returns:
the application attributes (taken from ServletContext in a web application)