class ControllerInjector extends MutableInjectorUser with InjectorWithLifecycle[ControllerInjector] with ShutdownHookLifecycleManager
Injector for the Play applications that creates controller bindings on the fly. The preferred way to use it is by adding it to the module composition at the very end, so that it would be possible to override default instantiation strategy in user-defined modules.
Here is an example:
object Global extends GlobalSettings with ScaldiSupport {
def applicationModule = new UserModule :: new DbModule :: new ControllerInjector
}
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ControllerInjector
- ShutdownHookLifecycleManager
- LifecycleManager
- InjectorWithLifecycle
- Initializeable
- Freezable
- MutableInjectorUser
- MutableInjector
- Injector
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new ControllerInjector()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
++[I <: Injector, R <: Injector](other: I)(implicit comp: CanCompose[ControllerInjector.this.type, I, R]): R
- Definition Classes
- Injector
-
def
::[I <: Injector, R <: Injector](other: I)(implicit comp: CanCompose[I, ControllerInjector.this.type, R]): R
- Definition Classes
- Injector
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
IgnoringErrorHandler: (Throwable) ⇒ Boolean
- Definition Classes
- LifecycleManager
-
def
addDestroyable(fn: () ⇒ Unit): Unit
- Definition Classes
- ShutdownHookLifecycleManager → LifecycleManager
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
destroy(errorHandler: (Throwable) ⇒ Boolean): Unit
- Definition Classes
- ShutdownHookLifecycleManager → LifecycleManager
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getBinding(identifiers: List[Identifier]): Option[Binding]
- Definition Classes
- InjectorWithLifecycle → Injector
-
def
getBindingInternal(identifiers: List[Identifier]): Option[BindingWithLifecycle]
- Definition Classes
- ControllerInjector → InjectorWithLifecycle
-
final
def
getBindings(identifiers: List[Identifier]): List[Binding]
- Definition Classes
- InjectorWithLifecycle → Injector
-
def
getBindingsInternal(identifiers: List[Identifier]): List[BindingWithLifecycle]
- Definition Classes
- ControllerInjector → InjectorWithLifecycle
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
init(lifecycleManager: LifecycleManager): () ⇒ Unit
- Attributes
- protected
- Definition Classes
- ControllerInjector → Initializeable
-
def
initNonLazy(): ControllerInjector
- Definition Classes
- Initializeable
-
implicit
def
injector: Injector
- Definition Classes
- MutableInjectorUser
-
implicit
val
injectorFn: () ⇒ Injector
- Definition Classes
- MutableInjectorUser
-
def
injector_=(newParentInjector: Injector): Unit
- Definition Classes
- MutableInjectorUser
-
def
isFrozen: Boolean
- Attributes
- protected
- Definition Classes
- Initializeable → Freezable
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
partialInit(lifecycleManager: LifecycleManager): Option[() ⇒ Unit]
- Definition Classes
- Initializeable
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()