final case class Context(environment: Environment, initialConfiguration: Configuration, lifecycle: ApplicationLifecycle, devContext: Option[DevContext]) extends Product with Serializable
Ordering
- Alphabetic
- By Inheritance
Inherited
- Context
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new Context(environment: Environment, initialConfiguration: Configuration, lifecycle: ApplicationLifecycle, devContext: Option[DevContext])
- environment
The environment
- initialConfiguration
The initial configuration. This configuration is not necessarily the same configuration used by the application, as the ApplicationLoader may, through it's own mechanisms, modify it or completely ignore it.
- lifecycle
Used to register hooks that run when the application stops.
- devContext
If an application is loaded in dev mode then this additional context is available.
Value Members
- val devContext: Option[DevContext]
- val environment: Environment
- val initialConfiguration: Configuration
- val lifecycle: ApplicationLifecycle
- def productElementNames: Iterator[String]
- Definition Classes
- Product
Deprecated Value Members
- def sourceMapper: Option[SourceMapper]
- Annotations
- @deprecated
- Deprecated
(Since version 2.7.0) Use devContext.map(_.sourceMapper) instead
- def webCommands: WebCommands
- Annotations
- @deprecated
- Deprecated
(Since version 2.7.0) WebCommands are no longer a property of ApplicationLoader.Context; they are available via injection or from the BuiltinComponents trait
The context for loading an application.
The environment
The initial configuration. This configuration is not necessarily the same configuration used by the application, as the ApplicationLoader may, through it's own mechanisms, modify it or completely ignore it.
Used to register hooks that run when the application stops.
If an application is loaded in dev mode then this additional context is available.