AnyBoundary

open class AnyBoundary

Type erasure for boundary objects. This is the base class for any client extension. This base class has a default associated type for dependencies. By default the dependencies list is empty.

  • Default Dependencies associatedtype for BoundaryProtocol.

    Declaration

    Swift

    public typealias Dependencies = BoundaryList
  • Internal use only struct. This can’t be initialized publicly.

    Declaration

    Swift

    public struct Internals
  • Required initializer for this class.

    Declaration

    Swift

    public required init(internals: Internals)
  • Creates an input port based on the passed implementation. InputPorts make your properties Accessible to dependents of your boundaries. This method is the only way to create input ports The init of the InputPort is internal. This brings cohesion between ports and boundaries.

    Declaration

    Swift

    public final func makeInputPort<Interface>(implementation: Interface) -> InputPort<Interface>