org.spicefactory.cinnamon.config.xml
Class XmlConfigurationParser

java.lang.Object
  extended by org.spicefactory.cinnamon.config.shared.AbstractConfigurationBuilder
      extended by org.spicefactory.cinnamon.config.xml.XmlConfigurationParser
All Implemented Interfaces:
ConfigurationBuilder

public class XmlConfigurationParser
extends AbstractConfigurationBuilder

Parses the Cinnamon XML configuration file and creates and populates a CinnamonConfig instance.

Author:
Jens Halm

Constructor Summary
XmlConfigurationParser(Resource resource, boolean clientMode)
          Creates a new configuration parser.
 
Method Summary
 CinnamonConfig build()
          Loads and processes the configuration and creates, populates and returns a new CinnamonConfig instance.
 
Methods inherited from class org.spicefactory.cinnamon.config.shared.AbstractConfigurationBuilder
getApplicationMap, getInitMap, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlConfigurationParser

public XmlConfigurationParser(Resource resource,
                              boolean clientMode)
Creates a new configuration parser. The clientMode parameter must be true if this parser is used in the Java client and not on the server side. In that case only converters and class mappings will be processed, interceptors, services and service factories will be skipped since they are relevant only for the server.

Parameters:
resource - the Resource to load the XML from
clientMode - whether the configuration will be parsed on the client or the server
Method Detail

build

public CinnamonConfig build()
Description copied from interface: ConfigurationBuilder
Loads and processes the configuration and creates, populates and returns a new CinnamonConfig instance.

Returns:
a new fully populated CinnamonConfig instance