Classes
The following classes are available globally.
-
Resolver is a Dependency Injection registry that registers Services for later resolution and injection into newly constructed instances.
See moreDeclaration
Swift
public final class Resolver
-
A ResolverOptions instance is returned by a registration function in order to allow additonal configuratiom. (e.g. scopes, etc.)
See moreDeclaration
Swift
public class ResolverOptions<Service>
-
ResolverRegistration stores a service definition and its factory closure.
See moreDeclaration
Swift
public final class ResolverRegistration<Service>: ResolverOptions<Service>
-
All application scoped services exist for lifetime of the app. (e.g Singletons)
See moreDeclaration
Swift
public class ResolverScopeApplication: ResolverScope
-
Cached services exist for lifetime of the app or until their cache is reset.
See moreDeclaration
Swift
public final class ResolverScopeCache: ResolverScopeApplication
-
Graph services are initialized once and only once during a given resolution cycle. This is the default scope.
See moreDeclaration
Swift
public final class ResolverScopeGraph: ResolverScope
-
Shared services persist while strong references to them exist. They’re then deallocated until the next resolve.
See moreDeclaration
Swift
public final class ResolverScopeShare: ResolverScope
-
Unique services are created and initialized each and every time they’re resolved.
See moreDeclaration
Swift
public final class ResolverScopeUnique: ResolverScope