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:
- org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, ConfigurationValidatorFactory
public class DelegatingConfigurationValidatorFactory
- extends org.apache.avalon.framework.logger.AbstractLogEnabled
- implements org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.activity.Disposable, ConfigurationValidatorFactory
Default ConfigurationValidator implementation that allows schemas to be plugged-in
- Author:
- Peter Royal
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 |
DelegatingConfigurationValidatorFactory
public DelegatingConfigurationValidatorFactory()
configure
public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Specified by:
configure
in interface org.apache.avalon.framework.configuration.Configurable
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
initialize
public void initialize()
throws Exception
- Specified by:
initialize
in interface org.apache.avalon.framework.activity.Initializable
- Throws:
Exception
dispose
public void dispose()
- Specified by:
dispose
in interface org.apache.avalon.framework.activity.Disposable
createValidator
public ConfigurationValidator createValidator(String schemaType,
InputStream schema)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Description copied from interface:
ConfigurationValidatorFactory
- Add configuration schema to validator
- Specified by:
createValidator
in interface ConfigurationValidatorFactory
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
- if schema is invalid
Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved.