LayerDependencies

Represents the dependency configuration for a layer within an architecture.

This interface provides methods to define dependencies between layers in an architecture.

Functions

Link copied to clipboard
abstract fun Layer.dependsOn(layers: Set<Layer>)

Adds dependencies between the current layer and the specified list of layers.

abstract fun Collection<Layer>.dependsOn(layer: Layer)

Adds dependencies between each layer in the collection and the specified layer.

abstract fun Collection<Layer>.dependsOn(layers: Set<Layer>)

Adds dependencies between each layer in the collection and the specified layers.

abstract fun Layer.dependsOn(layer: Layer, vararg layers: Layer)

Adds dependencies between the current layer and the specified layers.

Link copied to clipboard
abstract fun Layer.dependsOnNothing()

Specifies that the current layer does not depend on any other layer.

Specifies that none of the layers in the collection depend on any other layer.

Link copied to clipboard
abstract fun Layer.doesNotDependOn(layers: Set<Layer>)

Specifies that the current layer does not depend on the given list of layers.

abstract fun Collection<Layer>.doesNotDependOn(layer: Layer)

Specifies that none of the layers in the collection depend on the specified layer.

abstract fun Collection<Layer>.doesNotDependOn(layers: Set<Layer>)

Specifies that none of the layers in the collection depend on any of the specified layers.

abstract fun Layer.doesNotDependOn(layer: Layer, vararg layers: Layer)

Specifies that the current layer does not depend on any given layer.

Link copied to clipboard
abstract fun Layer.include()

This function is used to include a Layer in the architecture without specifying any dependencies. It can be used in combination with dependsOnNothing() to specify that a layer does not depend on any other layer.

abstract fun Collection<Layer>.include()

Includes all layers from the collection in the architecture without specifying any dependencies. This can be used in combination with dependsOnNothing() to specify that multiple layers do not depend on any other layer.