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
ConstructorsConstructorDescriptionConstruct with null properties.MapConfigurationProvider(Map props) Constructor; supply properties map. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperties(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.voidsetInto(Configuration conf) Set loaded information into the given configuration.protected voidsetInto(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:ConfigurationProviderReturn properties loaded thus far, or empty map if none.- Specified by:
getPropertiesin interfaceConfigurationProvider
-
addProperties
Description copied from interface:ConfigurationProviderAdd the given properties to those in this provider, overwriting any existing properties under the same keys.- Specified by:
addPropertiesin interfaceConfigurationProvider
-
addProperty
Description copied from interface:ConfigurationProviderAdd a single property, overwriting any existing property under the same key.- Specified by:
addPropertyin interfaceConfigurationProvider
-
setInto
Description copied from interface:ConfigurationProviderSet loaded information into the given configuration.- Specified by:
setIntoin interfaceConfigurationProvider
-
setInto
Set properties into configuration. If the log is non-null, will log a TRACE message about the set.
-