public static interface Env.Builder
Modifier and Type | Method and Description |
---|---|
default Env |
build(com.typesafe.config.Config config)
Build a new environment from a
Config object. |
Env |
build(com.typesafe.config.Config config,
Router router,
Locale locale)
Build a new environment from a
Config object. |
default Env build(com.typesafe.config.Config config)
Config
object. The environment is created from the
application.env
property. If such property is missing, env's name must be:
dev
.
Please note an environment created with this method won't have a Env.router()
.config
- A config instance.Env build(com.typesafe.config.Config config, Router router, Locale locale)
Config
object. The environment is created from the
application.env
property. If such property is missing, env's name must be:
dev
.config
- A config instance.router
- Application router.locale
- App locale.Copyright © 2018. All rights reserved.