Keel 2.1RC2

org.apache.excalibur.configuration.validation
Class DelegatingConfigurationValidatorFactory

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.excalibur.configuration.validation.DelegatingConfigurationValidatorFactory
All Implemented Interfaces:
Configurable, ConfigurationValidatorFactory, Disposable, Initializable, LogEnabled

public class DelegatingConfigurationValidatorFactory
extends AbstractLogEnabled
implements Configurable, Initializable, Disposable, ConfigurationValidatorFactory

Default ConfigurationValidator implementation that allows schemas to be plugged-in

Author:

Field Summary
private  java.util.Map m_delegates
           
private  java.lang.String m_supportedTypes
           
 
Fields inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
 
Fields inherited from interface org.apache.excalibur.configuration.validation.ConfigurationValidatorFactory
ROLE
 
Constructor Summary
DelegatingConfigurationValidatorFactory()
           
 
Method Summary
 void configure(Configuration configuration)
          Pass the Configuration to the Configurable class.
 ConfigurationValidator createValidator(java.lang.String schemaType, java.io.InputStream schema)
          Add configuration schema to validator
 void dispose()
          The dispose operation is called at the end of a components lifecycle.
 void initialize()
          Initialize the component.
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_delegates

private java.util.Map m_delegates

m_supportedTypes

private java.lang.String m_supportedTypes
Constructor Detail

DelegatingConfigurationValidatorFactory

public DelegatingConfigurationValidatorFactory()
Method Detail

configure

public void configure(Configuration configuration)
               throws ConfigurationException
Description copied from interface: Configurable
Pass the Configuration to the Configurable class.

Specified by:
configure in interface Configurable
Parameters:
configuration - the class configurations. Must not be null.
Throws:
ConfigurationException - if an error occurs

initialize

public void initialize()
                throws java.lang.Exception
Description copied from interface: Initializable
Initialize the component. Initialization includes allocating any resources required throughout the component's lifecycle.

Specified by:
initialize in interface Initializable
Throws:
java.lang.Exception - if an error occurs

dispose

public void dispose()
Description copied from interface: Disposable
The dispose operation is called at the end of a components lifecycle. This method will be called after Startable.stop() method (if implemented by component). Components use this method to release and destroy any resources that the Component owns.

Specified by:
dispose in interface Disposable

createValidator

public ConfigurationValidator createValidator(java.lang.String schemaType,
                                              java.io.InputStream schema)
                                       throws ConfigurationException
Description copied from interface: ConfigurationValidatorFactory
Add configuration schema to validator

Specified by:
createValidator in interface ConfigurationValidatorFactory
Throws:
ConfigurationException - if schema is invalid

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.