Package org.apache.openjpa.lib.conf
Class MapConfigurationProvider
java.lang.Object
org.apache.openjpa.lib.conf.MapConfigurationProvider
- All Implemented Interfaces:
ConfigurationProvider
- Direct Known Subclasses:
PersistenceProductDerivation.ConfigurationProviderImpl
Simple configuration provider that sets configuration based on a
provided map.
- Author:
- Abe White
-
Constructor Summary
ConstructorDescriptionConstruct with null properties.MapConfigurationProvider
(Map props) Constructor; supply properties map. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addProperties
(Map props) Add the given properties to those in this provider, overwriting any existing properties under the same keys.addProperty
(String key, Object value) Add a single property, overwriting any existing property under the same key.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.
-
Constructor Details
-
MapConfigurationProvider
public MapConfigurationProvider()Construct with null properties. -
MapConfigurationProvider
Constructor; supply properties map.
-
-
Method Details
-
getProperties
Description copied from interface:ConfigurationProvider
Return properties loaded thus far, or empty map if none.- Specified by:
getProperties
in interfaceConfigurationProvider
-
addProperties
Description copied from interface:ConfigurationProvider
Add the given properties to those in this provider, overwriting any existing properties under the same keys.- Specified by:
addProperties
in interfaceConfigurationProvider
-
addProperty
Description copied from interface:ConfigurationProvider
Add a single property, overwriting any existing property under the same key.- Specified by:
addProperty
in interfaceConfigurationProvider
-
setInto
Description copied from interface:ConfigurationProvider
Set loaded information into the given configuration.- Specified by:
setInto
in interfaceConfigurationProvider
-
setInto
Set properties into configuration. If the log is non-null, will log a TRACE message about the set.
-