Package org.apache.openjpa.lib.conf
Class ProductDerivations
java.lang.Object
org.apache.openjpa.lib.conf.ProductDerivations
Utilities for running product derivations.
- Author:
- Abe White, Pinaki Poddar
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
ApplyProductDerivation.afterSpecificationSet(org.apache.openjpa.lib.conf.Configuration)
callbacks to the the given instance.static void
beforeClose
(Configuration conf) Called as the first step of a Configuration's close() method.static void
ApplyProductDerivation.beforeConfigurationConstruct(org.apache.openjpa.lib.conf.ConfigurationProvider)
callbacks to the the given instance.static void
ApplyProductDerivation.beforeConfigurationLoad(org.apache.openjpa.lib.conf.Configuration)
callbacks to the the given instance.static String
getConfigurationKey
(String partialKey, Map map) Determine the full key name forpartialKey
, given the registered prefixes and the entries inmap
.static String[]
Return the recognized prefixes for configuration properties.getFullyQualifiedAnchorsInPropertiesLocation
(String propertiesLocation) Return a Listof all the fully-qualified anchors specified in propertiesLocation
.static ProductDerivation[]
Return all the product derivations registered in the current classloaderstatic ConfigurationProvider
load
(File file, String anchor, ClassLoader loader) Load given file, or return false if it is not a file this provider understands.static ConfigurationProvider
load
(String resource, String anchor, ClassLoader loader) Load the given given resource, or return false if it is not a resource this provider understands.static ConfigurationProvider
loadDefaults
(ClassLoader loader) Return aConfigurationProvider
that has parsed system defaults.static ConfigurationProvider
loadGlobals
(ClassLoader loader) Return aConfigurationProvider
that has parsed system globals.static void
Prints product derivation information.
-
Constructor Details
-
ProductDerivations
public ProductDerivations()
-
-
Method Details
-
getProductDerivations
Return all the product derivations registered in the current classloader -
getConfigurationPrefixes
Return the recognized prefixes for configuration properties. -
getConfigurationKey
Determine the full key name forpartialKey
, given the registered prefixes and the entries inmap
. This method computes the appropriate configuration prefix to use by looking throughmap
for a key starting with any of the known configuration prefixes and ending withpartialKey
and, if a value is found, using the prefix of that key. Otherwise, it uses the first registered prefix. The givenpartialKey
is first tested for containment in the given map without any prefix.- Since:
- 0.9.7
-
beforeConfigurationConstruct
ApplyProductDerivation.beforeConfigurationConstruct(org.apache.openjpa.lib.conf.ConfigurationProvider)
callbacks to the the given instance. Exceptions other than fatalBootstrapException
are swallowed. -
beforeConfigurationLoad
ApplyProductDerivation.beforeConfigurationLoad(org.apache.openjpa.lib.conf.Configuration)
callbacks to the the given instance. Exceptions other than fatalBootstrapException
are swallowed. -
afterSpecificationSet
ApplyProductDerivation.afterSpecificationSet(org.apache.openjpa.lib.conf.Configuration)
callbacks to the the given instance. Exceptions other than fatalBootstrapException
are swallowed. -
beforeClose
Called as the first step of a Configuration's close() method. Exceptions are swallowed.- Since:
- 0.9.7
-
load
Load the given given resource, or return false if it is not a resource this provider understands. The given class loader may be null.- Parameters:
anchor
- optional named anchor within a multiple-configuration resource
-
load
Load given file, or return false if it is not a file this provider understands.- Parameters:
anchor
- optional named anchor within a multiple-configuration file
-
loadDefaults
Return aConfigurationProvider
that has parsed system defaults. -
loadGlobals
Return aConfigurationProvider
that has parsed system globals. -
getFullyQualifiedAnchorsInPropertiesLocation
Return a Listof all the fully-qualified anchors specified in propertiesLocation
. The return values must be used in conjunction withpropertiesLocation
. If there are no product derivations or if no product derivations could find anchors, this returns an empty list.- Since:
- 1.1.0
-
getSupportedQueryHints
-
main
Prints product derivation information.
-