Structures
The following structures are available globally.
-
An empty boundary having no inputs or external sources.
See moreDeclaration
Swift
public struct Empty : BoundaryProtocol
-
A simple factory based on Swift Callable API. It takes a closure and creates a callable struct that will invoke the closure. This allows you to create inline factories in your Boundaries.
See moreDeclaration
Swift
public struct Factory<Configuration, Interface>
-
An input port is a struct for making a property visible for inbound dependencies of a boundary. Only Boundary subclasses can create input ports.
Declaration
Swift
public struct InputPort<Interface>
-
A type earasure for
See moreBoundaryListProtocol
, it dynamically look up for boundary input ports.Declaration
Swift
@dynamicMemberLookup public struct AnyBoundaryList< Boundary1: BoundaryProtocol, Boundary2: BoundaryProtocol, Boundary3: BoundaryProtocol, Boundary4: BoundaryProtocol, Boundary5: BoundaryProtocol, Boundary6: BoundaryProtocol, Boundary7: BoundaryProtocol, Boundary8: BoundaryProtocol, Boundary9: BoundaryProtocol, Boundary10: BoundaryProtocol, Boundary11: BoundaryProtocol, Boundary12: BoundaryProtocol, Boundary13: BoundaryProtocol, Boundary14: BoundaryProtocol, Boundary15: BoundaryProtocol, Boundary16: BoundaryProtocol, Boundary17: BoundaryProtocol, Boundary18: BoundaryProtocol, Boundary19: BoundaryProtocol, Boundary20: BoundaryProtocol >: BoundaryListProtocol
-
Resolved is a generic type, wrapping the boundary. Resolved gives you access to the boundary InputPort via dynamic look-up. This is the result type returned by the Resolver.
See moreDeclaration
Swift
@dynamicMemberLookup public struct Resolved<Boundary> where Boundary : BoundaryProtocol
-
Generic type for the Resolver. It has 2 generic types: Boundary and a list of boundaries. The Current boundary list represents the resolved dependencies of the boundary.
See moreDeclaration
Swift
public struct ResolverStack<Boundary, Current> where Boundary : AnyBoundary, Boundary : BoundaryProtocol, Current : BoundaryListProtocol