Packages

o

distage

Injector

object Injector extends InjectorFactory

Linear Supertypes
InjectorFactory, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Injector
  2. InjectorFactory
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def Standard: Injector.type

    Enable bytebuddy proxies, but try to resolve cycles using by-name parameters if they can be used

  2. def apply(): distage.Injector[distage.Identity]

    Create a default Injector with izumi.fundamentals.platform.functional.Identity effect type

    Create a default Injector with izumi.fundamentals.platform.functional.Identity effect type

    Use apply[F]() variant to specify a different effect type

    Definition Classes
    InjectorInjectorFactory
  3. def apply[F[_]](bootstrapBase: BootstrapContextModule = defaultBootstrap, bootstrapActivation: distage.Activation = defaultBootstrapActivation, parent: Option[distage.Locator] = None, overrides: Seq[distage.BootstrapModule] = Nil, bootstrapLocatorPrivacy: distage.LocatorPrivacy = defaultBootstrapLocatorPrivacy, bootstrapRootsMode: BootstrapRootsMode = defaultBootstrapRootsMode)(implicit arg0: QuasiIO[F], arg1: distage.TagK[F], arg2: distage.DefaultModule[F]): distage.Injector[F]

    Create a new Injector with custom parameters izumi.distage.model.definition.BootstrapContextModule

    Create a new Injector with custom parameters izumi.distage.model.definition.BootstrapContextModule

    F

    The effect type to use for effect and resource bindings and the result of izumi.distage.model.Injector#produce

    bootstrapBase

    Initial bootstrap context module, such as izumi.distage.bootstrap.BootstrapLocator.defaultBootstrap

    bootstrapActivation

    A map of axes of configuration to choices along these axes. The passed activation will affect _only_ the bootstrapping of the Injector itself (see izumi.distage.bootstrap.BootstrapLocator). To set activation choices for subsequent injections, pass Activation to the methods of the created Injector

    parent

    If set, this locator will be used as parent for the bootstrap locator. Use this parameter if you want to reuse components from another injection BUT also want to recreate the bootstrap environment with new parameters. If you just want to reuse all components, including the bootstrap environment, use inherit

    overrides

    Overrides of Injector's own bootstrap environment - injector itself is constructed with DI. They can be used to customize the Injector, e.g. by adding members to izumi.distage.model.planning.PlanningHook Set.

    Definition Classes
    InjectorInjectorFactory
  4. def apply[F[_]](overrides: distage.BootstrapModule*)(implicit arg0: QuasiIO[F], arg1: distage.TagK[F], arg2: distage.DefaultModule[F]): distage.Injector[F]

    Create a new Injector

    Create a new Injector

    F

    the effect type to use for effect and resource bindings and the result of izumi.distage.model.Injector#produce

    overrides

    Optional: Overrides of Injector's own bootstrap environment - injector itself is constructed with DI. They can be used to customize the Injector, e.g. by adding members to izumi.distage.model.planning.PlanningHook Set.

    Definition Classes
    InjectorInjectorFactory
  5. def bootloader[F[_]](bootstrapModule: distage.BootstrapModule, bootstrapActivation: distage.Activation, defaultModule: distage.DefaultModule[F], input: distage.PlannerInput): Bootloader
    Definition Classes
    InjectorInjectorFactory
  6. def inherit[F[_]](parent: distage.Locator)(implicit arg0: QuasiIO[F], arg1: distage.TagK[F]): distage.Injector[F]

    Create a new injector inheriting configuration, hooks and the object graph from a previous injection.

    Create a new injector inheriting configuration, hooks and the object graph from a previous injection.

    F

    the effect type to use for effect and resource bindings and the result of izumi.distage.model.Injector#produce

    parent

    Instances from parent izumi.distage.model.Locator will be available as imports in new Injector's produce

    Definition Classes
    InjectorInjectorFactory
  7. def inheritWithNewDefaultModule[F[_]](parent: distage.Locator, defaultModule: distage.DefaultModule[F])(implicit arg0: QuasiIO[F], arg1: distage.TagK[F]): distage.Injector[F]

    Create a new injector inheriting configuration, hooks and the object graph from a previous injection.

    Create a new injector inheriting configuration, hooks and the object graph from a previous injection.

    Unlike inherit this will fully (re)create the defaultModule in subsequent injections, without reusing the existing instances in parent.

    F

    the effect type to use for effect and resource bindings and the result of izumi.distage.model.Injector#produce

    parent

    Instances from parent izumi.distage.model.Locator will be available as imports in new Injector's produce

    Definition Classes
    InjectorInjectorFactory
  8. def providedKeys[F[_]](bootstrapBase: BootstrapContextModule, overrides: distage.BootstrapModule*)(implicit arg0: distage.DefaultModule[F]): Set[distage.DIKey]
    Definition Classes
    InjectorInjectorFactory
  9. def providedKeys[F[_]](overrides: distage.BootstrapModule*)(implicit arg0: distage.DefaultModule[F]): Set[distage.DIKey]

    Keys summonable by default in DI, *including* those added additionally by izumi.distage.modules.DefaultModule

    Keys summonable by default in DI, *including* those added additionally by izumi.distage.modules.DefaultModule

    Definition Classes
    InjectorInjectorFactory
  10. object NoCycles extends InjectorBootstrap

    Disable all cycle resolution, immediately throw when circular dependencies are found, whether by-name or not

  11. object NoProxies extends InjectorBootstrap

    Disable bytebuddy proxies, allow only by-name parameters to resolve cycles