com.seventytwomiles.architecturerules.services
Class RulesServiceImpl

java.lang.Object
  extended by com.seventytwomiles.architecturerules.services.RulesServiceImpl
All Implemented Interfaces:
RulesService

public class RulesServiceImpl
extends java.lang.Object
implements RulesService

Drives the tests by reading the configuraiton then asserting each defined Rule.

Author:
mikenereson
See Also:
AbstractArchitecturalRules

Constructor Summary
RulesServiceImpl(Configuration configuration)
          Instantiates a new RulesService which will begin reading all the configured sources
 
Method Summary
 boolean performRulesTest()
          Assert that no Rule in the given Configuraiton has been violated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RulesServiceImpl

public RulesServiceImpl(Configuration configuration)
                 throws SourceNotFoundException,
                        NoPackagesFoundException

Instantiates a new RulesService which will begin reading all the configured sources

Parameters:
configuration - Configuration
Throws:
SourceNotFoundException - when an required source directory does not exist and when exception="true" in the source configuration
NoPackagesFoundException - when none of the source directories exist and no-packages="ignore" in the sources configuraiton
Method Detail

performRulesTest

public boolean performRulesTest()

Assert that no Rule in the given Configuraiton has been violated.

Specified by:
performRulesTest in interface RulesService
Returns:
boolean true when tests pass


Copyright © 2007. All Rights Reserved.