|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.seventytwomiles.architecturerules.configuration.AbstractConfigurationFactory
public abstract class AbstractConfigurationFactory
Abstract Factory that provides common functionality for
ConfigurationFactory implementations.
ConfigurationFactory| Field Summary | |
|---|---|
protected boolean |
doCyclicDependencyTest
Weather or not to check for cyclic dependencies. |
protected Collection<Rule> |
rules
Set of Rules read from the configuration file |
protected List<SourceDirectory> |
sources
Set of Source read from configuration file |
protected boolean |
throwExceptionWhenNoPackages
Weather or not to throw exception when no packages are found for a given path. |
| 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 | |
|---|---|
AbstractConfigurationFactory()
|
|
| Method Summary | |
|---|---|
boolean |
doCyclicDependencyTest()
Holds the value parsed from the XML configuration that indicates weather or not the cyclic dependency test should be run. |
protected String |
getConfigurationAsXml(String configurationFileName)
Read Xml configuration file to String. |
Collection<Rule> |
getRules()
Getter for property rules. |
List<SourceDirectory> |
getSources()
Getter for property sources. |
boolean |
throwExceptionWhenNoPackages()
Holds the value parsed from the XML configuration that indicates weather or not a NoPackagesFoundException should be thrown
when no packages are found in any of the given source paths. |
protected abstract void |
validateConfiguration(String configuration)
Validate the configuration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Collection<Rule> rules
Set of Rules read from the configuration file
protected final List<SourceDirectory> sources
Set of Source read from configuration file
protected boolean throwExceptionWhenNoPackages
Weather or not to throw exception when no packages are found for a given path.
protected boolean doCyclicDependencyTest
Weather or not to check for cyclic dependencies.
| Constructor Detail |
|---|
public AbstractConfigurationFactory()
| Method Detail |
|---|
public Collection<Rule> getRules()
Getter for property rules.
getRules in interface ConfigurationFactorypublic List<SourceDirectory> getSources()
Getter for property sources.
getSources in interface ConfigurationFactorypublic boolean doCyclicDependencyTest()
ConfigurationFactoryHolds the value parsed from the XML configuration that indicates weather or not the cyclic dependency test should be run.
doCyclicDependencyTest in interface ConfigurationFactoryConfigurationFactory.doCyclicDependencyTest()public boolean throwExceptionWhenNoPackages()
ConfigurationFactoryHolds the value parsed from the XML configuration that indicates
weather or not a NoPackagesFoundException should be thrown
when no packages are found in any of the given source paths.
throwExceptionWhenNoPackages in interface ConfigurationFactoryConfigurationFactory.throwExceptionWhenNoPackages()protected String getConfigurationAsXml(String configurationFileName)
Read Xml configuration file to String.
configurationFileName - String name of the XML file in the classpath
to load and read OR the complete path to the file.
protected abstract void validateConfiguration(String configuration)
Validate the configuration.
configuration - String xml content to validate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||