org.spicefactory.cinnamon.config
Interface ConfigurationProcessor


public interface ConfigurationProcessor

Allows for customizations of the configuration process. Implementations of this interface can be used to programmatically manipulate CinnamonConfig instances before and after the usual configuration mechanisms (i.e. XML file parsing) are applied.

Author:
Jens Halm

Method Summary
 void init(Map<String,String> initMap, Map<String,Object> applicationMap)
          Initializes the ConfigurationProcessor.
 void postProcess(CinnamonConfig config)
          Method called after the usual configuration logic (XML file parsing, Spring context analyzing) was applied to the given CinnamonConfig instance.
 void preProcess(CinnamonConfig config)
          Method called before the usual configuration logic (XML file parsing, Spring context analyzing) will be applied to the given CinnamonConfig instance.
 

Method Detail

init

void init(Map<String,String> initMap,
          Map<String,Object> applicationMap)
Initializes the ConfigurationProcessor. Will be called once for each instance before any other method will be invoked.

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

preProcess

void preProcess(CinnamonConfig config)
Method called before the usual configuration logic (XML file parsing, Spring context analyzing) will be applied to the given CinnamonConfig instance.

Parameters:
config - the CinnamonConfig instance under construction

postProcess

void postProcess(CinnamonConfig config)
Method called after the usual configuration logic (XML file parsing, Spring context analyzing) was applied to the given CinnamonConfig instance.

Parameters:
config - the CinnamonConfig instance under construction