org.spicefactory.cinnamon.config
Interface ConfigurationBuilder

All Known Implementing Classes:
AbstractConfigurationBuilder, SpringConfigurationBuilder, XmlConfigurationParser

public interface ConfigurationBuilder

ConfigurationBuilder implementations are responsible for loading and processing configuration files and creating and populating CinnamonConfig instances. Cinnamon comes with two builtin implementations. One use Cinnamons own XML configuration format, the other uses a Spring ApplicationContext to assemble the configuration artifacts from.

Author:
Jens Halm

Method Summary
 CinnamonConfig build()
          Loads and processes the configuration and creates, populates and returns a new CinnamonConfig instance.
 void init(Map<String,String> initMap, Map<String,Object> applicationMap)
          Initializes the ServiceFactory.
 

Method Detail

init

void init(Map<String,String> initMap,
          Map<String,Object> applicationMap)
Initializes the ServiceFactory. Will only be called once by the framework at application startup.

Parameters:
initMap - the initialisation parameters (taken from ServletConfig in a web application)
applicationMap - the application attributes (taken from ServletContext in a web application)

build

CinnamonConfig build()
Loads and processes the configuration and creates, populates and returns a new CinnamonConfig instance.

Returns:
a new fully populated CinnamonConfig instance