trait Injector extends MetaMediation[Container]
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- Injector
- MetaMediation
- CanBeContainer
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- implicit final class _Registrable[T] extends AnyRef
- Attributes
- protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- implicit val _cntMutation: Container
- Definition Classes
- Injector → CanBeContainer
- implicit def _ijp: InjectionPool
Implicitly injection pool
Implicitly injection pool
- Attributes
- protected
- Definition Classes
- MetaMediation → CanBeContainer
- implicit def _someoneNeeds: Accessor[_]
- Attributes
- protected
- Definition Classes
- CanBeContainer
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- macro def inject[T](implicit ctn: Container, ip: InjectionPool, access: Accessor[_]): Lazy[T]
Get accessible dependencies.
Get accessible dependencies.
The type information is resolved at compile time, but the injection object is finalized at runtime.
- T
Injection type
- ctn
Container
- access
Accessor (This refers to itself)
- Attributes
- protected
- Definition Classes
- MetaMediation
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def narrow[T](x: T, priority: InjectionPriority = Primary)(implicit arg0: scala.reflect.api.JavaUniverse.WeakTypeTag[T], ctn: Container): Indexer[T]
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
- MetaMediation
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def shade[T](ctx: (LocalizedContainer) => T): T
Create a container shade.
Create a container shade. You can't nest shading.
class A(value: String) class B(a: A) class C(b: B) class D(c: C) shade { implicit c => new BStub().index() inject[D].run // Use BStub in C in D } inject[D].run // Use A in B in C in D
- T
Result type
- ctx
Shaded container function.
- Definition Classes
- MetaMediation
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def overwrite[T](x: T, priority: InjectionPriority = Overwrite)(implicit arg0: scala.reflect.api.JavaUniverse.WeakTypeTag[T], ctn: Container): Unit
Manually register the new dependency.
Manually register the new dependency.
- T
new dependency type
- x
new dependency.
- priority
Injection priority.
- Definition Classes
- MetaMediation
- Annotations
- @deprecated
- Deprecated
Try (t).index() instead.