com.seventytwomiles.architecturerules.configuration.xml
Class DigesterConfigurationFactory

java.lang.Object
  extended by com.seventytwomiles.architecturerules.configuration.AbstractConfigurationFactory
      extended by com.seventytwomiles.architecturerules.configuration.xml.DigesterConfigurationFactory
All Implemented Interfaces:
ConfigurationFactory

public class DigesterConfigurationFactory
extends AbstractConfigurationFactory

Apache Commons Digester implementation of the ConfigurationFactory

Author:
mikenereson
See Also:
AbstractConfigurationFactory

Field Summary
 
Fields inherited from class com.seventytwomiles.architecturerules.configuration.AbstractConfigurationFactory
doCyclicDependencyTest, rules, sources, throwExceptionWhenNoPackages
 
Fields inherited from interface com.seventytwomiles.architecturerules.configuration.ConfigurationFactory
DEFAULT_CONFIGURATION_FILE_NAME, DEFAULT_CYCLICAL_DEPENDENCY_CONFIGURATION_VALUE, DEFAULT_NO_PACKAGES_CONFIGURATION_BOOLEAN_VALUE
 
Constructor Summary
DigesterConfigurationFactory()
           
DigesterConfigurationFactory(String configurationFileName)
          Instantiates a new ConfigurationFactory and processes the configuration found in the File with the given configurationFileName.
 
Method Summary
protected  void validateConfiguration(String configurationXml)
          Validate the configurationXml.
 
Methods inherited from class com.seventytwomiles.architecturerules.configuration.AbstractConfigurationFactory
doCyclicDependencyTest, getConfigurationAsXml, getRules, getSources, throwExceptionWhenNoPackages
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DigesterConfigurationFactory

public DigesterConfigurationFactory()

DigesterConfigurationFactory

public DigesterConfigurationFactory(String configurationFileName)

Instantiates a new ConfigurationFactory and processes the configuration found in the File with the given configurationFileName.

Parameters:
configurationFileName - name of the File in the classpath to load configuration from.
Method Detail

validateConfiguration

protected void validateConfiguration(String configurationXml)

Validate the configurationXml.

Specified by:
validateConfiguration in class AbstractConfigurationFactory
Parameters:
configurationXml - String xml content to validate
See Also:
"architecture-rules.dtd"


Copyright © 2007-2008. All Rights Reserved.