public class ProductDerivations extends Object
Constructor and Description |
---|
ProductDerivations() |
Modifier and Type | Method and Description |
---|---|
static void |
afterSpecificationSet(Configuration conf)
Apply
ProductDerivation.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 |
beforeConfigurationConstruct(ConfigurationProvider cp)
Apply
ProductDerivation.beforeConfigurationConstruct(org.apache.openjpa.lib.conf.ConfigurationProvider) callbacks
to the the given instance. |
static void |
beforeConfigurationLoad(Configuration conf)
Apply
ProductDerivation.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 for
partialKey , given the
registered prefixes and the entries in map . |
static String[] |
getConfigurationPrefixes()
Return the recognized prefixes for configuration properties.
|
static List<String> |
getFullyQualifiedAnchorsInPropertiesLocation(String propertiesLocation)
Return a List
propertiesLocation . |
static ProductDerivation[] |
getProductDerivations()
Return all the product derivations registered in the current classloader
|
static Set<String> |
getSupportedQueryHints() |
static 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 a
ConfigurationProvider that has parsed system defaults. |
static ConfigurationProvider |
loadGlobals(ClassLoader loader)
Return a
ConfigurationProvider that has parsed system globals. |
static void |
main(String[] args)
Prints product derivation information.
|
public static ProductDerivation[] getProductDerivations()
public static String[] getConfigurationPrefixes()
public static String getConfigurationKey(String partialKey, Map map)
partialKey
, given the
registered prefixes and the entries in map
. This method
computes the appropriate configuration prefix to use by looking
through map
for a key starting with any of the known
configuration prefixes and ending with partialKey
and, if a
value is found, using the prefix of that key. Otherwise, it uses
the first registered prefix.
The given partialKey
is first tested for containment in the
given map without any prefix.public static void beforeConfigurationConstruct(ConfigurationProvider cp)
ProductDerivation.beforeConfigurationConstruct(org.apache.openjpa.lib.conf.ConfigurationProvider)
callbacks
to the the given instance. Exceptions other than fatal
BootstrapException
are swallowed.public static void beforeConfigurationLoad(Configuration conf)
ProductDerivation.beforeConfigurationLoad(org.apache.openjpa.lib.conf.Configuration)
callbacks
to the the given instance. Exceptions other than fatal
BootstrapException
are swallowed.public static void afterSpecificationSet(Configuration conf)
ProductDerivation.afterSpecificationSet(org.apache.openjpa.lib.conf.Configuration)
callbacks
to the the given instance. Exceptions other than fatal
BootstrapException
are swallowed.public static void beforeClose(Configuration conf)
public static ConfigurationProvider load(String resource, String anchor, ClassLoader loader)
anchor
- optional named anchor within a multiple-configuration
resourcepublic static ConfigurationProvider load(File file, String anchor, ClassLoader loader)
anchor
- optional named anchor within a multiple-configuration filepublic static ConfigurationProvider loadDefaults(ClassLoader loader)
ConfigurationProvider
that has parsed system defaults.public static ConfigurationProvider loadGlobals(ClassLoader loader)
ConfigurationProvider
that has parsed system globals.public static List<String> getFullyQualifiedAnchorsInPropertiesLocation(String propertiesLocation)
propertiesLocation
. The return values must be used in
conjunction with propertiesLocation
. If there are no
product derivations or if no product derivations could find anchors,
this returns an empty list.public static void main(String[] args)
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.