Package

refuel

injector

Permalink

package injector

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. injector
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait AutoInject[T] extends AutoInjectable[T] with Injector

    Permalink

    It is a basic automatic injection interface.

    It is a basic automatic injection interface. Change use refuel.injector.AutoInjectCustomPriority or any Injector that inherits AutoInjectCustomPriority

    T

    Type to register

  2. trait InjectOnce[T] extends AutoInject[T]

    Permalink

    Inject only once.

    Inject only once. Basically the same behavior as AutoInject, but the container is not indexed. If a class symbol that inherits InjectOnce is injected from a different location, an instance is created each time.

    T

    Type to register

  3. trait Injector extends MetaMediation[Container]

    Permalink
  4. trait RecoveredInject[T] extends AutoInject[T] with Injector

    Permalink

    This is registered as the weakest dependency that is applied when there is no injectable dependency.

    This is registered as the weakest dependency that is applied when there is no injectable dependency.

    T

    Type to register

  5. class AutoInjectCustomPriority[T] extends AutoInject[T]

    Permalink

    Inject automatically by specifying priority.

    Inject automatically by specifying priority.

    This was been deprecated. If you want to use this feature, please declare your own trait with custom priority.

    trait MyAutoInject[T] extends AutoInject[T] {
      override val injectionPriority: Int = AutoInject.DEFAULT_INJECTION_PRIORITY + 1
    }
    T

    Type to register

    Annotations
    @deprecated
    Deprecated

    Define and use traits with custom priorities as needed

Value Members

  1. object AutoInject

    Permalink
  2. implicit def _containerInheritance[T](x: HiddenContainerShade[T]): T

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped