Packages

trait Locator extends AnyRef

The object graph created by executing a plan. Can be queried for contained objects.

See also

izumi.distage.model.Injector

izumi.distage.model.Planner

izumi.distage.model.Producer

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

Abstract Value Members

  1. abstract def finalizers[F[_]](implicit arg0: TagK[F]): Seq[Finalizer[F]]
  2. abstract def find[T](id: Identifier)(implicit arg0: Tag[T]): Option[T]
  3. abstract def find[T](implicit arg0: Tag[T]): Option[T]
  4. abstract def get[T](id: Identifier)(implicit arg0: Tag[T]): T
  5. abstract def get[T](implicit arg0: Tag[T]): T
  6. abstract def index: Map[DIKey, Any]

    returns

    *Only* instances directly contained in this Locator, *NOT* instances in its parent Locators. Returned keys will be unique.

  7. abstract def instances: Seq[IdentifiedRef]

    Objects in this locator in order of creation

    Objects in this locator in order of creation

    returns

    *Only* instances directly contained in this Locator, *NOT* instances in its parent Locators. Returned keys will be unique.

  8. abstract def lookupInstance[T](key: DIKey)(implicit arg0: Tag[T]): Option[T]
  9. abstract def lookupInstanceOrThrow[T](key: DIKey)(implicit arg0: Tag[T]): T
  10. abstract def lookupRef[T](key: DIKey)(implicit arg0: Tag[T]): Option[TypedRef[T]]
  11. abstract def lookupRefOrThrow[T](key: DIKey)(implicit arg0: Tag[T]): TypedRef[T]
  12. abstract def meta: LocatorMeta
  13. abstract def parent: Option[Locator]
  14. abstract def plan: Plan

    The plan that produced this object graph

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def allInstances: Seq[IdentifiedRef]

    returns

    ALL instances contained in this locator and in all the parent locators, including injector bootstrap environment. Returned keys may overlap if parent locators contain objects for the same key. Instances from parent locators will be earlier in the list than instances from this locator.

    See also

    izumi.distage.bootstrap.BootstrapLocator

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def run[T](function: Functoid[T]): T

    Run function filling all the arguments from the object graph.

    Run function filling all the arguments from the object graph.

    Works similarly to function bindings in izumi.distage.model.definition.ModuleDef.

    objects.run {
      (hellower: Hellower, bye: Byer) =>
        hellower.hello()
        byer.bye()
    }
    See also

    izumi.distage.model.providers.Functoid

  17. final def runOption[T](function: Functoid[T]): Option[T]

    Same as run but returns None if any of the arguments could not be fulfilled

  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped