org.spicefactory.cinnamon.config.xml
Class XmlConfigurationParser
java.lang.Object
org.spicefactory.cinnamon.config.shared.AbstractConfigurationBuilder
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
|
Method Summary |
CinnamonConfig |
build()
Loads and processes the configuration and creates, populates and returns a new
CinnamonConfig instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 fromclientMode - whether the configuration will be parsed on the client or the server
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