Configuration

play.api.Configuration
See theConfiguration companion class
object Configuration

This object provides a set of operations to create Configuration values.

For example, to load a Configuration in a running application:

val config = Configuration.load()
val foo = config.getString("foo").getOrElse("boo")

The underlying implementation is provided by https://github.com/lightbend/config.

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(data: (String, Any)*): Configuration

Create a new Configuration from the given key-value pairs.

Create a new Configuration from the given key-value pairs.

Attributes

Returns an empty Configuration object.

Returns an empty Configuration object.

Attributes

def from(data: Map[String, Any]): Configuration

Create a new Configuration from the data passed as a Map.

Create a new Configuration from the data passed as a Map.

Attributes

def load(classLoader: ClassLoader, properties: Properties, directSettings: Map[String, AnyRef], allowMissingApplicationConf: Boolean): Configuration
def load(environment: Environment, devSettings: Map[String, AnyRef]): Configuration

Load a new Configuration from the Environment.

Load a new Configuration from the Environment.

Attributes

def load(environment: Environment): Configuration

Load a new Configuration from the Environment.

Load a new Configuration from the Environment.

Attributes

Returns the reference configuration object.

Returns the reference configuration object.

Attributes