object Modules

Locates and loads modules from the Play environment.

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

Value Members

  1. 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.

    environment

    The environment.

    configuration

    The configuration.

    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.