Package org.apache.openjpa.lib.conf
Interface ConfigurationProvider
- All Known Implementing Classes:
MapConfigurationProvider
,PersistenceProductDerivation.ConfigurationProviderImpl
public interface ConfigurationProvider
Implementations of this interface can populate
Configuration
s in
some environment-specific way. Implementations must implement the
equals
and hashCode
methods so that equivalent
configurations compare equal.- Since:
- 0.4.0.0
-
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.
-
Method Details
-
getProperties
Return properties loaded thus far, or empty map if none. -
addProperties
Add the given properties to those in this provider, overwriting any existing properties under the same keys. -
addProperty
Add a single property, overwriting any existing property under the same key. -
setInto
Set loaded information into the given configuration.
-