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);
}
}
Aggregations