Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa.lib » conf » [javadoc | source]
org.apache.openjpa.lib.conf
public class: ProductDerivations [javadoc | source]
java.lang.Object
   org.apache.openjpa.lib.conf.ProductDerivations
Utilities for running product derivations.
Method from org.apache.openjpa.lib.conf.ProductDerivations Summary:
afterSpecificationSet,   beforeClose,   beforeConfigurationConstruct,   beforeConfigurationLoad,   getConfigurationKey,   getConfigurationPrefixes,   getFullyQualifiedAnchorsInPropertiesLocation,   getProductDerivations,   load,   load,   loadDefaults,   loadGlobals,   main,   setConfigurationPrefixes
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.lib.conf.ProductDerivations Detail:
 public static  void afterSpecificationSet(Configuration conf) 
 public static  void beforeClose(Configuration conf) 
    Called as the first step of a Configuration's close() method. Exceptions are swallowed.
 public static  void beforeConfigurationConstruct(ConfigurationProvider cp) 
 public static  void beforeConfigurationLoad(Configuration conf) 
 public static String getConfigurationKey(String partialKey,
    Map map) 
    Determine the full key name for key, 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 key and, if a value is found, using the prefix of that key. Otherwise, it uses the first registered prefix.
 public static String[] getConfigurationPrefixes() 
    Return the recognized prefixes for configuration properties.
 public static List getFullyQualifiedAnchorsInPropertiesLocation(String propertiesLocation) 
    Return a List of all the fully-qualified anchors specified in 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 ProductDerivation[] getProductDerivations() 
    Return all the product derivations registered in the current classloader
 public 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. The given class loader may be null.
 public static ConfigurationProvider load(File file,
    String anchor,
    ClassLoader loader) 
    Load given file, or return false if it is not a file this provider understands.
 public static ConfigurationProvider loadDefaults(ClassLoader loader) 
 public static ConfigurationProvider loadGlobals(ClassLoader loader) 
 public static  void main(String[] args) 
    Prints product derivation information.
 static  void setConfigurationPrefixes(String[] prefixes) 
    Set the configuration prefix array. This is package-visible for testing purposes.