com.ideo.sweetdevria.config
Class Configurator

java.lang.Object
  extended by com.ideo.sweetdevria.config.Configurator

public class Configurator
extends java.lang.Object

Configurator.


Field Summary
protected  org.apache.commons.digester.Digester configDigester
          The Digester used to produce RIAConfig object from a configuration files.
static java.lang.String DEFAULT_CONFIG
          Default config file.
protected static org.apache.commons.logging.Log log
          Commons Logging instance.
 
Constructor Summary
Configurator()
           
 
Method Summary
 IRIAConfig init(java.lang.String paths)
           
protected  org.apache.commons.digester.Digester initConfigDigester()
           
protected  IRIAConfig initModuleConfig(java.lang.String paths)
          Initialize the application configuration information.
protected  void initModuleMessageResources(IRIAConfig config)
          Initialize the application MessageResources.
 boolean isValidating()
          Get the validating.
 void setValidating(boolean validating)
          Set the validating.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CONFIG

public static final java.lang.String DEFAULT_CONFIG
Default config file.

See Also:
Constant Field Values

configDigester

protected org.apache.commons.digester.Digester configDigester
The Digester used to produce RIAConfig object from a configuration files.


log

protected static org.apache.commons.logging.Log log
Commons Logging instance.

Constructor Detail

Configurator

public Configurator()
Method Detail

isValidating

public boolean isValidating()
Get the validating.

Returns:
Returns the validating.

setValidating

public void setValidating(boolean validating)
Set the validating.

Parameters:
validating - The validating to set.

init

public IRIAConfig init(java.lang.String paths)
                throws java.lang.Exception
Parameters:
paths -
Returns:
A RIAConfig object containing all the information contained by the ria config file (default: ria-config.xml)
Throws:
java.lang.Exception

initModuleMessageResources

protected void initModuleMessageResources(IRIAConfig config)
                                   throws java.lang.Exception

Initialize the application MessageResources.

Parameters:
config - RIAConfig information
Throws:
java.lang.Exception - if initialization cannot be performed

initModuleConfig

protected IRIAConfig initModuleConfig(java.lang.String paths)
                               throws java.lang.Exception
Initialize the application configuration information.

Parameters:
paths - Comma-separated list of resource path(s)
Throws:
java.lang.Exception - On problem during configuration initialisation.

initConfigDigester

protected org.apache.commons.digester.Digester initConfigDigester()
                                                           throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2010 Ideo Technologies. All Rights Reserved.