scaldi.play

ControllerInjector

Related Doc: package play

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
ShutdownHookLifecycleManager, LifecycleManager, InjectorWithLifecycle[ControllerInjector], Initializeable[ControllerInjector], Freezable, MutableInjectorUser, MutableInjector, Injector, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ControllerInjector
  2. ShutdownHookLifecycleManager
  3. LifecycleManager
  4. InjectorWithLifecycle
  5. Initializeable
  6. Freezable
  7. MutableInjectorUser
  8. MutableInjector
  9. Injector
  10. AnyRef
  11. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ControllerInjector()

Value Members

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

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

    Definition Classes
    AnyRef → Any
  3. def ++[I <: Injector, R <: Injector](other: I)(implicit comp: CanCompose[ControllerInjector.this.type, I, R]): R

    Definition Classes
    Injector
  4. def ::[I <: Injector, R <: Injector](other: I)(implicit comp: CanCompose[I, ControllerInjector.this.type, R]): R

    Definition Classes
    Injector
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  6. val IgnoringErrorHandler: (Throwable) ⇒ Boolean

    Definition Classes
    LifecycleManager
  7. def addDestroyable(fn: () ⇒ Unit): Unit

    Definition Classes
    ShutdownHookLifecycleManager → LifecycleManager
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def destroy(errorHandler: (Throwable) ⇒ Boolean): Unit

    Definition Classes
    ShutdownHookLifecycleManager → LifecycleManager
  11. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getBinding(identifiers: List[Identifier]): Option[Binding]

    Definition Classes
    InjectorWithLifecycle → Injector
  15. def getBindingInternal(identifiers: List[Identifier]): Option[BindingWithLifecycle]

    Definition Classes
    ControllerInjector → InjectorWithLifecycle
  16. final def getBindings(identifiers: List[Identifier]): List[Binding]

    Definition Classes
    InjectorWithLifecycle → Injector
  17. def getBindingsInternal(identifiers: List[Identifier]): List[BindingWithLifecycle]

    Definition Classes
    ControllerInjector → InjectorWithLifecycle
  18. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  20. def init(lifecycleManager: LifecycleManager): () ⇒ Unit

    Attributes
    protected
    Definition Classes
    ControllerInjector → Initializeable
  21. def initNonLazy(): ControllerInjector

    Definition Classes
    Initializeable
  22. implicit def injector: Injector

    Definition Classes
    MutableInjectorUser
  23. implicit val injectorFn: () ⇒ Injector

    Definition Classes
    MutableInjectorUser
  24. def injector_=(newParentInjector: Injector): Unit

    Definition Classes
    MutableInjectorUser
  25. def isFrozen: Boolean

    Attributes
    protected
    Definition Classes
    Initializeable → Freezable
  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  30. def partialInit(lifecycleManager: LifecycleManager): Option[() ⇒ Unit]

    Definition Classes
    Initializeable
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  32. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ShutdownHookLifecycleManager

Inherited from LifecycleManager

Inherited from InjectorWithLifecycle[ControllerInjector]

Inherited from Initializeable[ControllerInjector]

Inherited from Freezable

Inherited from MutableInjectorUser

Inherited from MutableInjector

Inherited from Injector

Inherited from AnyRef

Inherited from Any

Ungrouped