|
||||||||||
| 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 applicaiton to
specifiy where the source directories are, what rules to test against and
under what conditions should an Exception be thrown.
This Configuraiton may be loaded by configraiton from an XML
file in the classpath, through programatic configuraiton, 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 boolean addRule(Rule rule)
Add a new Rule to rules
rule - Rule to add
public java.util.Collection getSources()
Getter for property sources.
public boolean addSource(SourceDirectory sourceDirectory)
public boolean shouldThrowExceptionWhenNoPackages()
Getter for property throwExceptionWhenNoPackages.
public boolean shouldDoCyclicDependencyTest()
Getter for property doCyclicDependencyTest.
public void setThrowExceptionWhenNoPackages(boolean throwExceptionWhenNoPackages)
Setter for property throwExceptionWhenNoPackages.
throwExceptionWhenNoPackages - Value to set for
property
throwExceptionWhenNoPackages.
public void setDoCyclicDependencyTest(boolean doCyclicDependencyTest)
Setter for property doCyclicDependencyTest.
doCyclicDependencyTest - Value to set for property
doCyclicDependencyTest.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||