BoundaryProtocol

public protocol BoundaryProtocol

A boundary is a model for handling the object graph construction of a group of objects. Never use this protocol directly instead inherit from Boundary, Adapter, Container or RootBoundary

  • Undocumented

    Declaration

    Swift

    associatedtype Dependencies : BoundaryListProtocol
  • SelfDependencies Extension method

    Since Boundary inherits from AnyBoundary, this typealias disambiguate between the associated type and the default typealias defined in AnyBoundary.

    Declaration

    Swift

    typealias SelfDependencies = Self.Dependencies

Available where Self: AnyBoundary

  • Resolved Extension method

    Resolved type for the Boundary. The instances of Boundary are never exposed to the client. Instead resolved wraps the boundary giving access to the input ports and protecting the rest of the internal code of the boundary from being used externally.

    Declaration

    Swift

    typealias Resolved = Boundaries.Resolved<Self>
  • dependencies Extension method

    This property brings via dynamic look-up all the input port properties of your dependencies. Use it for creating the boundary’s objects injecting its dependencies.

    Declaration

    Swift

    var dependencies: SelfDependencies { get }