ConstraintSpec

Specification for defining dependency constraints on an architectural layer.

Functions

Link copied to clipboard
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.

fun mayNotAccessLayers(vararg forbiddenLayerNames: String): LayeredArchitectureBuilder

Constrains this layer so it may not access vararg layers 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 layer forbiddenLayerName.

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

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

Link copied to clipboard

Constrains this layer so it may only access layer allowedLayerName.

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

fun mayOnlyAccessLayers(vararg allowedLayerNames: String): LayeredArchitectureBuilder

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

Link copied to clipboard

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.

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