Class ArchitecturePreset
java.lang.Object
dev.archunitjava.presets.ArchitecturePreset
Immutable, inspectable preset that expands into ordinary architecture rules.
-
Method Summary
Modifier and TypeMethodDescriptionbecauseRule(String key, String rationale) check()check(CheckOptions options) static ArchitecturePresetcreate(String name, TypeModelResult model, DependencyGraph graph, Collection<PresetLayer> layers, Collection<PresetRule> rules) excludingTypes(TypeSelector selector) layers()name()renamedLayer(String oldName, String newName) rules()Expands every recipe to a normal independently decoratable architecture rule.withLayer(PresetLayer layer) withoutLayer(String layerName) withoutRule(String key) withRule(PresetRule rule) withRuleDisplayName(String key, String displayName)
-
Method Details
-
create
public static ArchitecturePreset create(String name, TypeModelResult model, DependencyGraph graph, Collection<PresetLayer> layers, Collection<PresetRule> rules) -
name
-
layers
-
ruleDefinitions
-
exclusions
-
layerModel
-
rules
Expands every recipe to a normal independently decoratable architecture rule. -
check
-
check
-
as
-
excludingTypes
-
renamedLayer
-
withRuleDisplayName
-
becauseRule
-
withoutRule
-
withRule
-
withLayer
-
withoutLayer
-