ConstraintSpec

Specification for defining dependency constraints on an architectural layer.

Functions

Link copied to clipboard
fun mayNotAccessLayers(vararg forbiddenLayerNames: String): LayeredArchitectureBuilder

Constrains this layer so it may not access vararg layers forbiddenLayerNames.

infix fun mayNotAccessLayers(forbiddenLayerName: String): LayeredArchitectureBuilder

Constrains this layer so it may not access layer forbiddenLayerName.

infix fun mayNotAccessLayers(forbiddenLayerNames: List<String>): LayeredArchitectureBuilder

Constrains this layer so it may not access layers in forbiddenLayerNames.

Link copied to clipboard

Constrains this layer so it may not be accessed by any other layer.

Link copied to clipboard

Constrains this layer so it may not be accessed by vararg layers forbiddenLayerNames.

Constrains this layer so it may not be accessed by layer forbiddenLayerName.

Constrains this layer so it may not be accessed by layers in forbiddenLayerNames.

Link copied to clipboard
fun mayOnlyAccessLayers(vararg allowedLayerNames: String): LayeredArchitectureBuilder

Constrains this layer so it may only access vararg layers allowedLayerNames.

Constrains this layer so it may only access layer allowedLayerName.

Constrains this layer so it may only access layers in allowedLayerNames.

Link copied to clipboard

Constrains this layer so it may only be accessed by vararg layers allowedLayerNames.

Constrains this layer so it may only be accessed by layer allowedLayerName.

Constrains this layer so it may only be accessed by layers in allowedLayerNames.