org.apache.excalibur.configuration.validation
Class DelegatingConfigurationValidatorFactory
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.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:
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_delegates
private java.util.Map m_delegates
-
m_supportedTypes
private java.lang.String m_supportedTypes
-
DelegatingConfigurationValidatorFactory
public DelegatingConfigurationValidatorFactory()
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
Please see keelframework.org for information about new Keel releases.