Object

com.phylage.scaladia.container

DefaultContainer

Related Doc: package container

Permalink

object DefaultContainer extends StorePublisherContainer

Linear Supertypes
StorePublisherContainer, AutoInject[Container], Injector, AutoInjectable, Container, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DefaultContainer
  2. StorePublisherContainer
  3. AutoInject
  4. Injector
  5. AutoInjectable
  6. Container
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val buffer: ListBuffer[InjectableScope[_]]

    Permalink
  6. def cache[T](value: InjectableScope[T]): InjectableScope[T]

    Permalink

    Cache in the injection container.

    Cache in the injection container.

    T

    injection type

    value

    injection object

    Definition Classes
    DefaultContainer → Container
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. macro def confirm[T](implicit ctn: Container, access: Accessor[_]): T

    Permalink

    Get accessible dependencies.

    Get accessible dependencies. You can detect errors that can not be assigned at compile time.

    It is faster than com.phylage.scaladia.injector.Injector.inject because of immediate assignment, but the dependency injected at compile time is determined, and this assignment can not be overwritten with "flush" or "narrow".

    The scope to which this immediate assignment applies is all the same instances that inherit com.phylage.scaladia.injector.AutoInjectable.

    T

    Injection type

    ctn

    Container

    access

    Accessor (This refers to itself)

    Attributes
    protected
    Definition Classes
    Injector
  9. def createIndexer[T](x: T, priority: Int)(implicit arg0: scala.reflect.api.JavaUniverse.WeakTypeTag[T]): Indexer[T]

    Permalink

    Generate an indexer.

    Generate an indexer.

    T

    injection type

    x

    Injectable object.

    priority

    priority

    Definition Classes
    DefaultContainer → Container
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def find[T](requestFrom: Accessor[_])(implicit arg0: scala.reflect.api.JavaUniverse.WeakTypeTag[T]): Option[T]

    Permalink

    May return an injectable object.

    May return an injectable object.

    Definition Classes
    DefaultContainer → Container
  14. def flush[N <: Container](implicit arg0: scala.reflect.api.JavaUniverse.WeakTypeTag[N]): InjectableScope[Container]

    Permalink

    The process that is originally registered to "Injection Container" is prevented to prevent circular reference.

    The process that is originally registered to "Injection Container" is prevented to prevent circular reference.

    N

    extends container type

    Definition Classes
    StorePublisherContainerAutoInject
  15. implicit def from: Accessor[_]

    Permalink

    This refers to itself

    This refers to itself

    Attributes
    protected
    Definition Classes
    Injector
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. implicit def getContainer: Container

    Permalink

    Implicitly container

    Implicitly container

    Attributes
    protected
    Definition Classes
    Injector
  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. macro def inject[T](implicit ctn: Container, access: Accessor[_]): Lazy[T]

    Permalink

    Get accessible dependencies.

    Get accessible dependencies.

    The type information is resolved at compile time, but the injection object is finalized at runtime. This function is slower than com.phylage.scaladia.injector.Injector.confirm, but can be overwritten by flush or narrow.

    T

    Injection type

    ctn

    Container

    access

    Accessor (This refers to itself)

    Attributes
    protected
    Definition Classes
    Injector
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. def narrow[T](x: T, priority: Int = Int.MaxValue)(implicit arg0: scala.reflect.api.JavaUniverse.WeakTypeTag[T]): Indexer[T]

    Permalink

    Gets an indexer for registering new dependencies.

    Gets an indexer for registering new dependencies. By default, the dependency priority is set to maximum.

    T

    new dependency type

    x

    new dependency

    priority

    Injection priority.

    Attributes
    protected
    Definition Classes
    Injector
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. def overwrite[T](x: T, priority: Int = 1100)(implicit arg0: scala.reflect.api.JavaUniverse.WeakTypeTag[T]): Unit

    Permalink

    Manually register the new dependency.

    Manually register the new dependency.

    T

    new dependency type

    x

    new dependency.

    priority

    Injection priority.

    Definition Classes
    Injector
  26. implicit def provide[X](variable: Lazy[X]): X

    Permalink

    Provide dependency.

    Provide dependency.

    X

    Variable type

    variable

    Stored dependency object.

    Definition Classes
    Injector
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from StorePublisherContainer

Inherited from AutoInject[Container]

Inherited from Injector

Inherited from AutoInjectable

Inherited from Container

Inherited from AnyRef

Inherited from Any

Ungrouped