public class EnvPropertiesProvider extends Object implements PropertiesProvider
PropertiesProvider backed by Environmental Variables.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ENV_PREFIX |
| Constructor and Description |
|---|
EnvPropertiesProvider() |
EnvPropertiesProvider(String environmentVariablePrefix) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getProperty(String key)
Returns the value of the specified property.
|
Object |
getProperty(String key,
Object defaultValue)
Returns the value of the specified property.
|
public static final String DEFAULT_ENV_PREFIX
public EnvPropertiesProvider()
public EnvPropertiesProvider(String environmentVariablePrefix)
public Object getProperty(String key)
PropertiesProvidernull if the property is not found.getProperty in interface PropertiesProviderkey - The name of the requested property.null if the
property is undefined.public Object getProperty(String key, Object defaultValue)
PropertiesProvidergetProperty in interface PropertiesProviderkey - The name of the requested property.Copyright © 2014 JBoss by Red Hat. All rights reserved.