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 Configuraiton instance whos setters and collections are unavailable or unmodifiable.

Author:
mikenereson

Constructor Summary
UnmodifiableConfiguration(Configuration configuration)
          Instanciates a new unmodifiable configuration class.
 
Method Summary
 java.util.Collection getRules()
          Getter for property Configuration.rules.
 java.util.Collection getSources()
          Getter for property Configuration.sources.
 void setDoCyclicDependencyTest(boolean doCyclicDependencyTest)
          Setter for property Configuration.doCyclicDependencyTest.
 void 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
 

Constructor Detail

UnmodifiableConfiguration

public UnmodifiableConfiguration(Configuration configuration)

Instanciates a new unmodifiable configuration class.

Parameters:
configuration - Configuration to offer as unmodifiable
Method Detail

getRules

public java.util.Collection getRules()

Getter for property Configuration.rules.

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

getSources

public java.util.Collection getSources()

Getter for property Configuration.sources.

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

setThrowExceptionWhenNoPackages

public void setThrowExceptionWhenNoPackages(boolean throwExceptionWhenNoPackages)

Setter for property Configuration.throwExceptionWhenNoPackages.

Overrides:
setThrowExceptionWhenNoPackages in class Configuration
Parameters:
throwExceptionWhenNoPackages - Value to set for property throwExceptionWhenNoPackages.

setDoCyclicDependencyTest

public void setDoCyclicDependencyTest(boolean doCyclicDependencyTest)

Setter for property Configuration.doCyclicDependencyTest.

Overrides:
setDoCyclicDependencyTest in class Configuration
Parameters:
doCyclicDependencyTest - Value to set for property doCyclicDependencyTest.


Copyright © 2007. All Rights Reserved.