Type Aliases
The following type aliases are available globally.
-
A boundary is a class and a protocol, it is meant to handling the object graph construction of a gruop of objects.
Declaration
Swift
public typealias Boundary = AnyBoundary & BoundaryProtocol
-
A ContainerBoundary is a class and a protocol, it is a subtype of Boundary. A container is simply a boundary that contains other children boundaries. This gives makes the boundary composable.
Declaration
Swift
public typealias ContainerBoundary = Boundary & ContainerBoundaryProtocol
-
A concrete BoundaryList, it’s made of empty boundaries. Use the Add operator to add your own boundaries.
-
An AdapterBoundary is a class and a protocol, it is a subtype of Boundary. An Adapter is a boundary implementing a plugin.
Declaration
Swift
public typealias AdapterBoundary = AdapterBoundaryProtocol & Boundary
-
The Resolver associated with the boundary. The Resolver is a builder of the boundary it has methods for resolving the dependencies and plugins of the Boundary.
Declaration
Swift
public typealias Resolver<Boundary> = ResolverStack<Boundary, BoundaryList> where Boundary : AnyBoundary, Boundary : BoundaryProtocol
-
A RootBoundary is the root object of the Boundary Graph. A RootBoundary is a Container which can be resolved directly without a Resolver. For building a root boundary you simply instantiate RootBoundary.Resolved()
Declaration
Swift
public typealias RootBoundary = Boundary & RootBoundaryProtocol