public class JoyProps extends JoyBase implements JoyPropsConfig
| Modifier and Type | Field and Description |
|---|---|
protected java.util.function.Supplier<java.lang.String> |
nameSupplier |
protected jodd.props.Props |
props |
| Constructor and Description |
|---|
JoyProps(java.util.function.Supplier<java.lang.String> nameSupplier) |
| Modifier and Type | Method and Description |
|---|---|
JoyProps |
addPropsFile(java.lang.String namePattern)
Adds props files or patterns.
|
JoyProps |
addPropsProfiles(java.lang.String... profiles) |
protected jodd.props.Props |
createProps()
Creates new
Props with default configuration. |
jodd.props.Props |
getProps()
Returns application Props.
|
void |
start()
Creates and loads application props.
|
void |
stop()
Stops the Joy component.
|
initLogger, requireNotStarted, requireStartedprotected final java.util.function.Supplier<java.lang.String> nameSupplier
protected jodd.props.Props props
public JoyProps(java.util.function.Supplier<java.lang.String> nameSupplier)
public jodd.props.Props getProps()
public JoyProps addPropsFile(java.lang.String namePattern)
addPropsFile in interface JoyPropsConfigpublic JoyProps addPropsProfiles(java.lang.String... profiles)
addPropsProfiles in interface JoyPropsConfigpublic void start()
sys.*)
and then environment properties (registered as env.*).
Finally, props files are read from the classpath. All properties
are loaded using
If props have been already loaded, does nothing.
protected jodd.props.Props createProps()
Props with default configuration.
Empty props will be ignored, and missing macros will be
resolved as empty string.Copyright © 2003-present Jodd Team