org.apache.openjpa.conf
Interface ProductDerivation


public interface ProductDerivation

Hooks for deriving products with additional functionality. All implementations of this interface will have a chance to mutate a Configuration both before and after the user-specified configuration data is loaded. The order in which the derivations are evaluated is determined by the specificity of the derivation type.

Since:
4.1

Field Summary
static int TYPE_FEATURE
           
static int TYPE_PRODUCT
           
static int TYPE_PRODUCT_STORE
           
static int TYPE_SPEC
           
static int TYPE_SPEC_STORE
           
static int TYPE_STORE
           
 
Method Summary
 void afterSpecificationSet(OpenJPAConfiguration conf)
          Called after the specification has been set.
 void beforeConfigurationConstruct(org.apache.openjpa.lib.conf.ConfigurationProvider cp)
          Provides the instance with a callback to mutate the initial properties of the ConfigurationProvider.
 void beforeConfigurationLoad(OpenJPAConfiguration conf)
          Provides the instance with the opportunity to mutate conf before the user configuration is applied.
 int getType()
          Return the type of derivation.
 

Field Detail

TYPE_SPEC

static final int TYPE_SPEC
See Also:
Constant Field Values

TYPE_PRODUCT

static final int TYPE_PRODUCT
See Also:
Constant Field Values

TYPE_STORE

static final int TYPE_STORE
See Also:
Constant Field Values

TYPE_SPEC_STORE

static final int TYPE_SPEC_STORE
See Also:
Constant Field Values

TYPE_PRODUCT_STORE

static final int TYPE_PRODUCT_STORE
See Also:
Constant Field Values

TYPE_FEATURE

static final int TYPE_FEATURE
See Also:
Constant Field Values
Method Detail

getType

int getType()
Return the type of derivation.


beforeConfigurationConstruct

void beforeConfigurationConstruct(org.apache.openjpa.lib.conf.ConfigurationProvider cp)
Provides the instance with a callback to mutate the initial properties of the ConfigurationProvider. This is primarily to alter or add properties that determine what type of configuration is constructed, and therefore is typically used at runtime only.


beforeConfigurationLoad

void beforeConfigurationLoad(OpenJPAConfiguration conf)
Provides the instance with the opportunity to mutate conf before the user configuration is applied.


afterSpecificationSet

void afterSpecificationSet(OpenJPAConfiguration conf)
Called after the specification has been set.



Copyright © 2006 Apache Software Foundation. All Rights Reserved.