public class DefaultPropertiesProvider extends CompositePropertiesProvider implements PropertiesProvider
| Constructor and Description |
|---|
DefaultPropertiesProvider() |
DefaultPropertiesProvider(Map<String,Object> properties) |
DefaultPropertiesProvider(Map<String,Object> properties,
boolean systemPropertyDelegation) |
DefaultPropertiesProvider(Map<String,Object> properties,
boolean systemPropertyDelegation,
String environmentVariablePrefix) |
DefaultPropertiesProvider(Properties properties) |
DefaultPropertiesProvider(Properties properties,
boolean systemPropertyDelegation) |
DefaultPropertiesProvider(Properties properties,
boolean systemPropertyDelegation,
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 DefaultPropertiesProvider()
public DefaultPropertiesProvider(Properties properties)
public DefaultPropertiesProvider(Properties properties, boolean systemPropertyDelegation)
public DefaultPropertiesProvider(Map<String,Object> properties, boolean systemPropertyDelegation)
public DefaultPropertiesProvider(Properties properties, boolean systemPropertyDelegation, String environmentVariablePrefix)
public Object getProperty(String key)
PropertiesProvidernull if the property is not found.getProperty in interface PropertiesProvidergetProperty in class CompositePropertiesProviderkey - The name of the requested property.null if the
property is undefined.public Object getProperty(String key, Object defaultValue)
PropertiesProvidergetProperty in interface PropertiesProvidergetProperty in class CompositePropertiesProviderkey - The name of the requested property.Copyright © 2014 JBoss by Red Hat. All rights reserved.