|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openjpa.lib.conf.MapConfigurationProvider
public class MapConfigurationProvider
Simple configuration provider that sets configuration based on a provided map.
Constructor Summary | |
---|---|
MapConfigurationProvider()
Construct with null properties. |
|
MapConfigurationProvider(java.util.Map props)
Constructor; supply properties map. |
Method Summary | |
---|---|
void |
addProperties(java.util.Map props)
Add the given properties to those in this provider, overwriting any exisitng properties under the same keys. |
java.lang.Object |
addProperty(java.lang.String key,
java.lang.Object value)
Add a single property, overwriting any existing property under the same key. |
java.util.Map |
getProperties()
Return properties loaded thus far, or empty map if none. |
boolean |
load(java.io.File file)
Load given file, or return false if it is not a file this provider understands. |
boolean |
load(java.lang.String resource,
java.lang.ClassLoader loader)
Load the given given resource, or return false if it is not a resource this provider understands. |
boolean |
loadDefaults(java.lang.ClassLoader loader)
Load defaults, or return false if no defaults for this provider found. |
void |
setInto(Configuration conf)
Set loaded information into the given configuration. |
protected void |
setInto(Configuration conf,
Log log)
Set properties into configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapConfigurationProvider()
public MapConfigurationProvider(java.util.Map props)
Method Detail |
---|
public boolean loadDefaults(java.lang.ClassLoader loader) throws java.lang.Exception
ConfigurationProvider
loadDefaults
in interface ConfigurationProvider
java.lang.Exception
public boolean load(java.lang.String resource, java.lang.ClassLoader loader) throws java.lang.Exception
ConfigurationProvider
load
in interface ConfigurationProvider
java.lang.Exception
public boolean load(java.io.File file) throws java.lang.Exception
ConfigurationProvider
load
in interface ConfigurationProvider
java.lang.Exception
public java.util.Map getProperties()
ConfigurationProvider
getProperties
in interface ConfigurationProvider
public void addProperties(java.util.Map props)
ConfigurationProvider
addProperties
in interface ConfigurationProvider
public java.lang.Object addProperty(java.lang.String key, java.lang.Object value)
ConfigurationProvider
addProperty
in interface ConfigurationProvider
public void setInto(Configuration conf)
ConfigurationProvider
setInto
in interface ConfigurationProvider
protected void setInto(Configuration conf, Log log)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |