Package | Description |
---|---|
io.jooby |
Modifier and Type | Method and Description |
---|---|
EnvironmentOptions |
EnvironmentOptions.setActiveNames(List<String> activeNames)
Set active environment names.
|
EnvironmentOptions |
EnvironmentOptions.setActiveNames(String... activeNames)
Set active environment names.
|
EnvironmentOptions |
EnvironmentOptions.setBasedir(Path basedir)
Set base dir.
|
EnvironmentOptions |
EnvironmentOptions.setBasedir(String basedir)
Set base dir.
|
EnvironmentOptions |
EnvironmentOptions.setClassLoader(ClassLoader classLoader)
Set class loader.
|
EnvironmentOptions |
EnvironmentOptions.setFilename(String filename)
Set file name.
|
Modifier and Type | Method and Description |
---|---|
static Environment |
Environment.loadEnvironment(EnvironmentOptions options)
This method search for an application.conf file in three location
(first-listed are higher priority):
${user.dir}/conf: This is a file system location, useful is you want to externalize
configuration (outside of jar file).
${user.dir}: This is a file system location, useful is you want to externalize
configuration (outside of jar file)
classpath:// (root of classpath).
|
Environment |
Jooby.setEnvironmentOptions(EnvironmentOptions options)
Set environment options and initialize/overrides the environment.
|
Copyright © 2020. All rights reserved.