Class LayerRules
java.lang.Object
dev.archunitjava.rules.LayerRules
Named-layer access policies sharing one deterministic type/member evidence projection.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ArchitectureRuleisolated(LayerModel layers, DependencyGraph graph, LayerSelector isolated) static ArchitectureRuleisolated(LayerModel layers, DependencyGraph graph, LayerSelector isolated, Set<DependencyKind> includedKinds) static ArchitectureRulemayOnlyAccess(LayerModel layers, DependencyGraph graph, LayerSelector origins, LayerSelector allowedTargets) static ArchitectureRulemayOnlyAccess(LayerModel layers, DependencyGraph graph, LayerSelector origins, LayerSelector allowedTargets, Set<DependencyKind> includedKinds) static ArchitectureRulenoAccess(LayerModel layers, DependencyGraph graph, LayerSelector origins, LayerSelector targets) static ArchitectureRulenoAccess(LayerModel layers, DependencyGraph graph, LayerSelector origins, LayerSelector targets, Set<DependencyKind> includedKinds) static ArchitectureRuleonlyAccessedBy(LayerModel layers, DependencyGraph graph, LayerSelector targets, LayerSelector allowedOrigins) static ArchitectureRuleonlyAccessedBy(LayerModel layers, DependencyGraph graph, LayerSelector targets, LayerSelector allowedOrigins, Set<DependencyKind> includedKinds)
-
Method Details
-
noAccess
public static ArchitectureRule noAccess(LayerModel layers, DependencyGraph graph, LayerSelector origins, LayerSelector targets) -
noAccess
public static ArchitectureRule noAccess(LayerModel layers, DependencyGraph graph, LayerSelector origins, LayerSelector targets, Set<DependencyKind> includedKinds) -
mayOnlyAccess
public static ArchitectureRule mayOnlyAccess(LayerModel layers, DependencyGraph graph, LayerSelector origins, LayerSelector allowedTargets) -
mayOnlyAccess
public static ArchitectureRule mayOnlyAccess(LayerModel layers, DependencyGraph graph, LayerSelector origins, LayerSelector allowedTargets, Set<DependencyKind> includedKinds) -
onlyAccessedBy
public static ArchitectureRule onlyAccessedBy(LayerModel layers, DependencyGraph graph, LayerSelector targets, LayerSelector allowedOrigins) -
onlyAccessedBy
public static ArchitectureRule onlyAccessedBy(LayerModel layers, DependencyGraph graph, LayerSelector targets, LayerSelector allowedOrigins, Set<DependencyKind> includedKinds) -
isolated
public static ArchitectureRule isolated(LayerModel layers, DependencyGraph graph, LayerSelector isolated) -
isolated
public static ArchitectureRule isolated(LayerModel layers, DependencyGraph graph, LayerSelector isolated, Set<DependencyKind> includedKinds)
-