Package org.apache.openjpa.lib.conf
Interface ConfigurationProvider
-
- All Known Implementing Classes:
MapConfigurationProvider,PersistenceProductDerivation.ConfigurationProviderImpl
public interface ConfigurationProviderImplementations of this interface can populateConfigurations in some environment-specific way. Implementations must implement theequalsandhashCodemethods so that equivalent configurations compare equal.- Since:
- 0.4.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddProperties(Map<?,?> props)Add the given properties to those in this provider, overwriting any existing properties under the same keys.ObjectaddProperty(String key, Object value)Add a single property, overwriting any existing property under the same key.Map<String,Object>getProperties()Return properties loaded thus far, or empty map if none.voidsetInto(Configuration conf)Set loaded information into the given configuration.
-
-
-
Method Detail
-
getProperties
Map<String,Object> getProperties()
Return properties loaded thus far, or empty map if none.
-
addProperties
void addProperties(Map<?,?> props)
Add the given properties to those in this provider, overwriting any existing properties under the same keys.
-
addProperty
Object addProperty(String key, Object value)
Add a single property, overwriting any existing property under the same key.
-
setInto
void setInto(Configuration conf)
Set loaded information into the given configuration.
-
-