com.seventytwomiles.architecturerules.configuration
Class UnmodifiableConfiguration

java.lang.Object
  extended by com.seventytwomiles.architecturerules.configuration.Configuration
      extended by com.seventytwomiles.architecturerules.configuration.UnmodifiableConfiguration

public final class UnmodifiableConfiguration
extends Configuration

An UnmodifiableConfiguration is a Configuration instance whose setters and collections are unavailable or unmodifiable.

Author:
mikenereson

Field Summary
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
UnmodifiableConfiguration(Configuration configuration)
          Instantiates a new unmodifiable configuration class.
 
Method Summary
 Collection<Rule> getRules()
          Getter for property Configuration.rules.
 Collection<SourceDirectory> getSources()
          Getter for property Configuration.sources.
 UnmodifiableConfiguration setDoCyclicDependencyTest(boolean doCyclicDependencyTest)
          Setter for property Configuration.doCyclicDependencyTest.
 UnmodifiableConfiguration setThrowExceptionWhenNoPackages(boolean throwExceptionWhenNoPackages)
          Setter for property Configuration.throwExceptionWhenNoPackages.
 
Methods inherited from class com.seventytwomiles.architecturerules.configuration.Configuration
addRule, addSource, shouldDoCyclicDependencyTest, shouldThrowExceptionWhenNoPackages
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.commons.logging.Log log
Constructor Detail

UnmodifiableConfiguration

public UnmodifiableConfiguration(Configuration configuration)

Instantiates a new unmodifiable configuration class.

Parameters:
configuration - Configuration to offer as unmodifiable
Method Detail

getRules

public Collection<Rule> getRules()

Getter for property Configuration.rules.

Overrides:
getRules in class Configuration
Returns:
Value for property rules.

getSources

public Collection<SourceDirectory> getSources()

Getter for property Configuration.sources.

Overrides:
getSources in class Configuration
Returns:
Value for property sources.

setDoCyclicDependencyTest

public UnmodifiableConfiguration setDoCyclicDependencyTest(boolean doCyclicDependencyTest)

Setter for property Configuration.doCyclicDependencyTest.

Overrides:
setDoCyclicDependencyTest in class Configuration
Parameters:
doCyclicDependencyTest - Value to set for property doCyclicDependencyTest.
Returns:
Configuration this Configuration which allows for method chaining

setThrowExceptionWhenNoPackages

public UnmodifiableConfiguration setThrowExceptionWhenNoPackages(boolean throwExceptionWhenNoPackages)

Setter for property Configuration.throwExceptionWhenNoPackages.

Overrides:
setThrowExceptionWhenNoPackages in class Configuration
Parameters:
throwExceptionWhenNoPackages - Value to set for property throwExceptionWhenNoPackages.
Returns:
Configuration this Configuration which allows for method chaining


Copyright © 2007-2008. All Rights Reserved.