|
||||||||||
| 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
| Constructor Summary | |
|---|---|
Configuration()
|
|
| Method Summary | |
|---|---|
boolean |
addRule(Rule rule)
Add a new Rule to
rules
|
boolean |
addSource(SourceDirectory sourceDirectory)
|
java.util.Collection |
getRules()
Getter for property rules.
|
java.util.Collection |
getSources()
Getter for property sources.
|
void |
setDoCyclicDependencyTest(boolean doCyclicDependencyTest)
Setter for property doCyclicDependencyTest.
|
void |
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 |
| Constructor Detail |
|---|
public Configuration()
| Method Detail |
|---|
public java.util.Collection getRules()
Getter for property
rules.
public java.util.Collection getSources()
Getter for property
sources.
public void setDoCyclicDependencyTest(boolean doCyclicDependencyTest)
Setter for property
doCyclicDependencyTest.
doCyclicDependencyTest - Value to set for property
doCyclicDependencyTest.
public void setThrowExceptionWhenNoPackages(boolean throwExceptionWhenNoPackages)
Setter for property
throwExceptionWhenNoPackages.
throwExceptionWhenNoPackages - Value to set for
property
throwExceptionWhenNoPackages.
public boolean addRule(Rule rule)
Add a new Rule to
rules
rule - Rule to add
public boolean addSource(SourceDirectory sourceDirectory)
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 | |||||||||