ch.elca.el4j.services.xmlmerge.config
Class PropertyXPathConfigurer

java.lang.Object
  extended by ch.elca.el4j.services.xmlmerge.config.AbstractXPathConfigurer
      extended by ch.elca.el4j.services.xmlmerge.config.PropertyXPathConfigurer
All Implemented Interfaces:
Configurer

public class PropertyXPathConfigurer
extends AbstractXPathConfigurer

Reads the XPathOperationFactory configuration from a property file or a map.

Author:
Laurent Bovet (LBO), Alex Mathey (AMA)
File-location:
PropertyXPathConfigurer
Last check-in date:
2009-08-04 15:35:01 +0200 (Di, 04. Aug 2009) by swismer for revision 3883

Field Summary
static String ACTION_PREFIX
          Action pathname prefix.
static String DEFAULT_ACTION_KEY
          Default action pathname.
static String DEFAULT_MAPPER_KEY
          Default mapper pathname.
static String DEFAULT_MATCHER_KEY
          Default matcher pathname.
static String MAPPER_PREFIX
          Mapper pathname prefix.
static String MATCHER_PREFIX
          Matcher pathname prefix.
static String PATH_PREFIX
          XPath pathname prefix.
 
Constructor Summary
PropertyXPathConfigurer(Map map)
          Creates a PropertyXPathConfigurer which reads the configuration from a map.
PropertyXPathConfigurer(Properties properties)
          Creates a PropertyXPathConfigurer which reads the configuration from a Properties object.
PropertyXPathConfigurer(String propString)
          Creates a PropertyXPathConfigurer which reads the configuration from a properties file.
 
Method Summary
protected  void readConfiguration()
          Reads the configuration used to configure an XmlMerge.
 
Methods inherited from class ch.elca.el4j.services.xmlmerge.config.AbstractXPathConfigurer
addAction, addMapper, addMatcher, configure, setActionResolver, setDefaultAction, setDefaultMapper, setDefaultMatcher, setMapperResolver, setMatcherResolver, setRootMergeAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ACTION_KEY

public static final String DEFAULT_ACTION_KEY
Default action pathname.

See Also:
Constant Field Values

DEFAULT_MAPPER_KEY

public static final String DEFAULT_MAPPER_KEY
Default mapper pathname.

See Also:
Constant Field Values

DEFAULT_MATCHER_KEY

public static final String DEFAULT_MATCHER_KEY
Default matcher pathname.

See Also:
Constant Field Values

PATH_PREFIX

public static final String PATH_PREFIX
XPath pathname prefix.

See Also:
Constant Field Values

MAPPER_PREFIX

public static final String MAPPER_PREFIX
Mapper pathname prefix.

See Also:
Constant Field Values

MATCHER_PREFIX

public static final String MATCHER_PREFIX
Matcher pathname prefix.

See Also:
Constant Field Values

ACTION_PREFIX

public static final String ACTION_PREFIX
Action pathname prefix.

See Also:
Constant Field Values
Constructor Detail

PropertyXPathConfigurer

public PropertyXPathConfigurer(String propString)
                        throws ConfigurationException
Creates a PropertyXPathConfigurer which reads the configuration from a properties file.

Parameters:
propString - A string representing the name of a properties file
Throws:
ConfigurationException - If an error occurred during the creation of the configurer

PropertyXPathConfigurer

public PropertyXPathConfigurer(Map map)
Creates a PropertyXPathConfigurer which reads the configuration from a map.

Parameters:
map - A map containing configuration properties

PropertyXPathConfigurer

public PropertyXPathConfigurer(Properties properties)
Creates a PropertyXPathConfigurer which reads the configuration from a Properties object.

Parameters:
properties - The configuration properties
Method Detail

readConfiguration

protected void readConfiguration()
                          throws ConfigurationException
Reads the configuration used to configure an XmlMerge.

Specified by:
readConfiguration in class AbstractXPathConfigurer
Throws:
ConfigurationException - If an error occurred during the read


Copyright © 2005-2011 ELCA. All Rights Reserved.