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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidApplyProductDerivation.afterSpecificationSet(org.apache.openjpa.lib.conf.Configuration)callbacks to the the given instance.static voidbeforeClose(Configuration conf) Called as the first step of a Configuration's close() method.static voidApplyProductDerivation.beforeConfigurationConstruct(org.apache.openjpa.lib.conf.ConfigurationProvider)callbacks to the the given instance.static voidApplyProductDerivation.beforeConfigurationLoad(org.apache.openjpa.lib.conf.Configuration)callbacks to the the given instance.static StringgetConfigurationKey(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 ConfigurationProviderload(File file, String anchor, ClassLoader loader) Load given file, or return false if it is not a file this provider understands.static ConfigurationProviderload(String resource, String anchor, ClassLoader loader) Load the given given resource, or return false if it is not a resource this provider understands.static ConfigurationProviderloadDefaults(ClassLoader loader) Return aConfigurationProviderthat has parsed system defaults.static ConfigurationProviderloadGlobals(ClassLoader loader) Return aConfigurationProviderthat has parsed system globals.static voidPrints 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 throughmapfor a key starting with any of the known configuration prefixes and ending withpartialKeyand, if a value is found, using the prefix of that key. Otherwise, it uses the first registered prefix. The givenpartialKeyis 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 fatalBootstrapExceptionare swallowed. -
beforeConfigurationLoad
ApplyProductDerivation.beforeConfigurationLoad(org.apache.openjpa.lib.conf.Configuration)callbacks to the the given instance. Exceptions other than fatalBootstrapExceptionare swallowed. -
afterSpecificationSet
ApplyProductDerivation.afterSpecificationSet(org.apache.openjpa.lib.conf.Configuration)callbacks to the the given instance. Exceptions other than fatalBootstrapExceptionare 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 aConfigurationProviderthat has parsed system defaults. -
loadGlobals
Return aConfigurationProviderthat 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.
-