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 more

    Declaration

    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 more

    Declaration

    Swift

    public class ResolverOptions<Service>
  • ResolverRegistration stores a service definition and its factory closure.

    See more

    Declaration

    Swift

    public final class ResolverRegistration<Service>: ResolverOptions<Service>
  • All application scoped services exist for lifetime of the app. (e.g Singletons)

    See more

    Declaration

    Swift

    public class ResolverScopeApplication: ResolverScope
  • Cached services exist for lifetime of the app or until their cache is reset.

    See more

    Declaration

    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 more

    Declaration

    Swift

    public final class ResolverScopeGraph: ResolverScope
  • Shared services persist while strong references to them exist. They’re then deallocated until the next resolve.

    See more

    Declaration

    Swift

    public final class ResolverScopeShare: ResolverScope
  • Unique services are created and initialized each and every time they’re resolved.

    See more

    Declaration

    Swift

    public final class ResolverScopeUnique: ResolverScope