Modules

play.api.inject.Modules
object Modules

Locates and loads modules from the Play environment.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Modules.type

Members list

Value members

Concrete methods

def locate(environment: Environment, configuration: Configuration): Seq[Any]

Locate the modules from the environment.

Locate the modules from the environment.

Loads all modules specified by the play.modules.enabled property, minus the modules specified by the play.modules.disabled property. If the modules have constructors that take an Environment and a Configuration, then these constructors are called first; otherwise default constructors are called.

Value parameters

configuration

The configuration.

environment

The environment.

Attributes

Returns

A sequence of objects. This method makes no attempt to cast or check the types of the modules being loaded, allowing ApplicationLoader implementations to reuse the same mechanism to load modules specific to them.