NewInstanceInjector

play.api.inject.NewInstanceInjector
object NewInstanceInjector extends Injector

An injector that simply creates a new instance of the passed in classes using the classes no-arg constructor.

Attributes

Graph
Supertypes
trait Injector
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def instanceOf[T](implicit ct: ClassTag[T]): T

Get an instance of the given class from the injector.

Get an instance of the given class from the injector.

Attributes

def instanceOf[T](clazz: Class[T]): T

Get an instance of the given class from the injector.

Get an instance of the given class from the injector.

Attributes

def instanceOf[T](key: BindingKey[T]): T

Get an instance bound to the given binding key.

Get an instance bound to the given binding key.

Attributes

Inherited methods

def asJava: Injector

Get as an instance of the Java injector.

Get as an instance of the Java injector.

Attributes

Inherited from:
Injector