|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.seventytwomiles.architecturerules.configuration.Configuration
public class Configuration
An instance of Configuration allows the application to
specifiy where the source directories are, what rules to test against and
under what conditions should an Exception be thrown.
This Configuration may be loaded by configuration from an XML
file in the classpath, through programmatic configuration, or both.
ConfigurationFactory,
UnmodifiableConfiguration| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
log
|
| Constructor Summary | |
|---|---|
Configuration()
|
|
| Method Summary | |
|---|---|
Configuration |
addRule(Rule rule)
Add a new Rule to rules |
Configuration |
addSource(SourceDirectory sourceDirectory)
Add a new SourceDirectory to sources |
Collection<Rule> |
getRules()
Getter for property rules. |
Collection<SourceDirectory> |
getSources()
Getter for property sources. |
Configuration |
setDoCyclicDependencyTest(boolean doCyclicDependencyTest)
Setter for property doCyclicDependencyTest. |
Configuration |
setThrowExceptionWhenNoPackages(boolean throwExceptionWhenNoPackages)
Setter for property throwExceptionWhenNoPackages. |
boolean |
shouldDoCyclicDependencyTest()
Getter for property doCyclicDependencyTest. |
boolean |
shouldThrowExceptionWhenNoPackages()
Getter for property throwExceptionWhenNoPackages. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public Configuration()
| Method Detail |
|---|
public Collection<Rule> getRules()
Getter for property rules.
public Collection<SourceDirectory> getSources()
Getter for property sources.
public Configuration setDoCyclicDependencyTest(boolean doCyclicDependencyTest)
Setter for property doCyclicDependencyTest.
doCyclicDependencyTest - Value to set for property
doCyclicDependencyTest.
Configuration which allows for
method chainingpublic Configuration setThrowExceptionWhenNoPackages(boolean throwExceptionWhenNoPackages)
Setter for property throwExceptionWhenNoPackages.
throwExceptionWhenNoPackages - Value to set for property
throwExceptionWhenNoPackages.
Configuration which allows for
method chainingpublic Configuration addRule(Rule rule)
Add a new Rule to rules
rule - Rule to add
Configuration to allow for method
chaining.public Configuration addSource(SourceDirectory sourceDirectory)
Add a new SourceDirectory to sources
sourceDirectory - SourceDirectory to add
Configuration to allow for method
chaining.public boolean shouldDoCyclicDependencyTest()
Getter for property doCyclicDependencyTest.
public boolean shouldThrowExceptionWhenNoPackages()
Getter for property throwExceptionWhenNoPackages.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||