public class MapConfigurationProvider extends Object implements ConfigurationProvider
| Constructor and Description |
|---|
MapConfigurationProvider()
Construct with null properties.
|
MapConfigurationProvider(Map props)
Constructor; supply properties map.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProperties(Map props)
Add the given properties to those in this provider, overwriting
any existing properties under the same keys.
|
Object |
addProperty(String key,
Object value)
Add a single property, overwriting any existing property under the
same key.
|
Map |
getProperties()
Return properties loaded thus far, or empty map if none.
|
void |
setInto(Configuration conf)
Set loaded information into the given configuration.
|
protected void |
setInto(Configuration conf,
Log log)
Set properties into configuration.
|
public MapConfigurationProvider()
public MapConfigurationProvider(Map props)
public Map getProperties()
ConfigurationProvidergetProperties in interface ConfigurationProviderpublic void addProperties(Map props)
ConfigurationProvideraddProperties in interface ConfigurationProviderpublic Object addProperty(String key, Object value)
ConfigurationProvideraddProperty in interface ConfigurationProviderpublic void setInto(Configuration conf)
ConfigurationProvidersetInto in interface ConfigurationProviderprotected void setInto(Configuration conf, Log log)
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.