Packages

t

play.api.test

Injecting

trait Injecting extends AnyRef

A trait declared on a class that contains an def app: Application, and can provide instances of a class. Useful in integration tests.

Self Type
Injecting with HasApp
Source
Helpers.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Injecting
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def inject[T](implicit arg0: ClassTag[T]): T

    Given an application, provides an instance from the application.

    Given an application, provides an instance from the application.

    T

    the type to return, using app.injector.instanceOf

    returns

    an instance of type T.