Search in sources :

Example 1 with ArchConfiguration

use of com.tngtech.archunit.ArchConfiguration in project ArchUnit by TNG.

the class ArchUnitExtensions method dispatch.

private void dispatch(EvaluatedRule evaluatedRule, ArchUnitExtension extension) {
    ArchConfiguration configuration = ArchConfiguration.get();
    Properties extensionProperties = configuration.getExtensionProperties(extension.getUniqueIdentifier());
    if (isEnabled(extensionProperties)) {
        configureAndDispatch(extension, extensionProperties, evaluatedRule);
    } else if (LOG.isDebugEnabled()) {
        LOG.debug("Extension '{}' is disabled, skipping... (to enable this extension, configure extension.{}.{}=true)", extension.getUniqueIdentifier(), extension.getUniqueIdentifier(), ENABLED_PROPERTY);
    }
}
Also used : ArchConfiguration(com.tngtech.archunit.ArchConfiguration) Properties(java.util.Properties)

Aggregations

ArchConfiguration (com.tngtech.archunit.ArchConfiguration)1 Properties (java.util.Properties)1