public class AppProperties
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.regex.Pattern |
SEPARATOR_PATTERN |
Constructor and Description |
---|
AppProperties(AppComponents appComponents) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getProperty(java.lang.String key)
Get property value defined in the set of
app.properties files. |
java.lang.String[] |
getPropertyNames() |
void |
setProperty(java.lang.String key,
java.lang.String value)
Set property value.
|
public AppProperties(AppComponents appComponents)
public java.lang.String[] getPropertyNames()
app.properties
files and exported by the app components@Nullable public java.lang.String getProperty(java.lang.String key)
app.properties
files.key
- property keypublic void setProperty(java.lang.String key, @Nullable java.lang.String value)
getProperty(String)
and
getPropertyNames()
, but will not be saved in any app.properties
file and will be lost
after the application restart.key
- property keyvalue
- property value. If null, the property will be removed.