|
||||||||||
| 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 java.util.Collection |
rules
Set of Rules read from the configuration file |
protected java.util.Collection |
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. |
| Constructor Summary | |
|---|---|
AbstractConfigurationFactory()
|
|
| Method Summary | |
|---|---|
boolean |
doCyclicDependencyTest()
|
protected java.lang.String |
getConfigurationAsXml(java.lang.String configurationFileName)
Read Xml configuration file to String. |
java.util.Collection |
getRules()
Getter for property rules.
|
java.util.Collection |
getSources()
Getter for property sources.
|
boolean |
throwExceptionWhenNoPackages()
|
protected abstract void |
validateConfigruation(java.lang.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 java.util.Collection rules
Set of Rules read from the configuration file
protected final java.util.Collection 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 |
|---|
protected abstract void validateConfigruation(java.lang.String configuration)
Validate the configuration.
configuration - String xml content to validate
protected java.lang.String getConfigurationAsXml(java.lang.String configurationFileName)
Read Xml configuration file to String.
configurationFileName - String name of the XML file
in teh classpath
to load and read
public java.util.Collection getSources()
Getter for property sources.
getSources
in interface ConfigurationFactory
public java.util.Collection getRules()
Getter for property rules.
getRules
in interface ConfigurationFactory
public boolean throwExceptionWhenNoPackages()
throwExceptionWhenNoPackages
in interface ConfigurationFactory
public boolean doCyclicDependencyTest()
doCyclicDependencyTest
in interface ConfigurationFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||