public class PropertiesReader
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PropertiesReader.Provider |
Constructor and Description |
---|
PropertiesReader() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getConditionalBlockValues() |
java.lang.String |
getEnvironment() |
java.util.Properties |
load(java.io.InputStream stream) |
java.util.Properties |
load(java.io.Reader reader) |
java.util.Properties |
load(java.net.URL location) |
protected java.util.Properties |
processProperties(java.util.Properties input) |
void |
registerConditionalBlock(java.lang.String blockName,
java.lang.String blockValue) |
void |
setEnvironment(java.lang.String environment) |
public void registerConditionalBlock(@Nullable java.lang.String blockName, @Nullable java.lang.String blockValue)
@Nonnull public java.util.Map<java.lang.String,java.lang.String> getConditionalBlockValues()
@Nonnull public java.lang.String getEnvironment()
public void setEnvironment(java.lang.String environment)
@Nonnull public java.util.Properties load(@Nonnull java.net.URL location) throws java.io.IOException
java.io.IOException
@Nonnull public java.util.Properties load(@Nonnull java.io.InputStream stream) throws java.io.IOException
java.io.IOException
@Nonnull public java.util.Properties load(@Nonnull java.io.Reader reader) throws java.io.IOException
java.io.IOException
@Nonnull protected java.util.Properties processProperties(@Nonnull java.util.Properties input)