ResolverScope
public class ResolverScope : ResolverScopeType
Undocumented
-
All application scoped services exist for lifetime of the app. (e.g Singletons)
Declaration
Swift
public static let application: ResolverScopeCache
-
Cached services exist for lifetime of the app or until their cache is reset.
Declaration
Swift
public static let cached: ResolverScopeCache
-
Graph services are initialized once and only once during a given resolution cycle. This is the default scope.
Declaration
Swift
public static let graph: ResolverScopeGraph
-
Shared services persist while strong references to them exist. They’re then deallocated until the next resolve.
Declaration
Swift
public static let shared: ResolverScopeShare
-
Unique services are created and initialized each and every time they’re resolved.
Declaration
Swift
public static let unique: ResolverScopeUnique
-
Undocumented
Declaration
Swift
public func resolve<Service>(resolver: Resolver, registration: ResolverRegistration<Service>, args: Any?) -> Service?