t

play.api.inject

Injector

trait Injector extends AnyRef

An injector, capable of providing components.

This is an abstraction over whatever dependency injection is being used in Play. A minimal implementation may only call newInstance on the passed in class.

This abstraction is primarily provided for libraries that want to remain agnostic to the type of dependency injection being used. End users are encouraged to use the facilities provided by the dependency injection framework they are using directly, for example, if using Guice, use com.google.inject.Injector instead of this.

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

Abstract Value Members

  1. abstract def instanceOf[T](key: BindingKey[T]): T

    Get an instance bound to the given binding key.

  2. abstract def instanceOf[T](clazz: Class[T]): T

    Get an instance of the given class from the injector.

  3. abstract def instanceOf[T](implicit arg0: ClassTag[T]): T

    Get an instance of the given class from the injector.

Concrete Value Members

  1. def asJava: inject.Injector

    Get as an instance of the Java injector.