ch.elca.el4j.env.xml
Class EnvXml

java.lang.Object
  extended by ch.elca.el4j.env.xml.EnvXml

public class EnvXml
extends Object

The central class get env properties configured via env.xml files.

Author:
Stefan Wismer (SWI)
File-location:
EnvXml
Last check-in date:
2009-08-04 14:25:40 +0200 (Di, 04. Aug 2009) by swismer for revision 3874

Field Summary
static String ENV_GROUP_BEAN_OVERRIDES
          The group type name for env bean override properties.
static String ENV_GROUP_PLACEHOLDERS
          The group type name for env placeholders.
static String ENV_XML_LOCATION
          The env.xml location pattern.
 
Constructor Summary
EnvXml()
          The env.xml configuration reader.
EnvXml(ResourcePatternResolver resourcePatternResolver, boolean mostSpecificResourceLast)
          The env.xml configuration reader.
 
Method Summary
 Object getGroupConfiguration(String groupType)
          Get the configuration of a specif env group.
 Properties getOverrideValues()
           
 boolean hasValidConfigurations()
           
 void registerHandler(String groupType, EnvGroupHandler handler)
          Register an env group handler.
 void setOverrideValues(Properties overrideValues)
           
 void unregisterHandler(String groupType)
          Unregister an env group handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENV_GROUP_PLACEHOLDERS

public static final String ENV_GROUP_PLACEHOLDERS
The group type name for env placeholders.

See Also:
Constant Field Values

ENV_GROUP_BEAN_OVERRIDES

public static final String ENV_GROUP_BEAN_OVERRIDES
The group type name for env bean override properties.

See Also:
Constant Field Values

ENV_XML_LOCATION

public static final String ENV_XML_LOCATION
The env.xml location pattern.

See Also:
Constant Field Values
Constructor Detail

EnvXml

public EnvXml()
The env.xml configuration reader.


EnvXml

public EnvXml(ResourcePatternResolver resourcePatternResolver,
              boolean mostSpecificResourceLast)
The env.xml configuration reader.

Parameters:
resourcePatternResolver - the resolver to ask for the resources
mostSpecificResourceLast - is most specific resource last
Method Detail

hasValidConfigurations

public boolean hasValidConfigurations()
Returns:
true if at least one env.xml file could be found.

getOverrideValues

public Properties getOverrideValues()
Returns:
the override values for variable resolution

setOverrideValues

public void setOverrideValues(Properties overrideValues)
Parameters:
overrideValues - the override values for variable resolution

getGroupConfiguration

public Object getGroupConfiguration(String groupType)
Get the configuration of a specif env group.

Parameters:
groupType - the group type name
Returns:
the configuration

registerHandler

public void registerHandler(String groupType,
                            EnvGroupHandler handler)
Register an env group handler.

Parameters:
groupType - the group type name
handler - the handler

unregisterHandler

public void unregisterHandler(String groupType)
Unregister an env group handler.

Parameters:
groupType - the group type name


Copyright © 2005-2011 ELCA. All Rights Reserved.