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. |
@Nonnull 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.@Nonnull Env build(com.typesafe.config.Config config, @Nullable 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 © 2019. All rights reserved.