net.sf.ehcache.openjpa.datacache
Class EhCacheDerivation

java.lang.Object
  extended by org.apache.openjpa.lib.conf.AbstractProductDerivation
      extended by net.sf.ehcache.openjpa.datacache.EhCacheDerivation
All Implemented Interfaces:
org.apache.openjpa.lib.conf.ProductDerivation

public class EhCacheDerivation
extends org.apache.openjpa.lib.conf.AbstractProductDerivation

Introduces a DataCache specialized for EhCache. This derivation is activated by setting openjpa.DataCacheManager configuration property to "ehcache".
This derivation also forces that openjpa.DataCache and openjpa.RemoteCommitProvider property is not specified or specified as "ehcache" and "none" respectively.

Author:
Pinaki Poddar, Craig Andrews, Greg Luck

Field Summary
static java.lang.String EHCACHE
           
static java.lang.String NO_RCP
           
 
Fields inherited from interface org.apache.openjpa.lib.conf.ProductDerivation
TYPE_FEATURE, TYPE_PRODUCT
 
Constructor Summary
EhCacheDerivation()
           
 
Method Summary
 boolean beforeConfigurationConstruct(org.apache.openjpa.lib.conf.ConfigurationProvider cp)
           
 boolean beforeConfigurationLoad(org.apache.openjpa.lib.conf.Configuration conf)
           
 int getType()
           
 void validate()
           
 
Methods inherited from class org.apache.openjpa.lib.conf.AbstractProductDerivation
afterSpecificationSet, beforeConfigurationClose, getAnchorsInFile, getAnchorsInResource, getConfigurationPrefix, getDefaultResourceLocation, load, load, loadDefaults, loadGlobals
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EHCACHE

public static final java.lang.String EHCACHE
See Also:
Constant Field Values

NO_RCP

public static final java.lang.String NO_RCP
See Also:
Constant Field Values
Constructor Detail

EhCacheDerivation

public EhCacheDerivation()
Method Detail

validate

public void validate()
              throws java.lang.Exception
Specified by:
validate in interface org.apache.openjpa.lib.conf.ProductDerivation
Overrides:
validate in class org.apache.openjpa.lib.conf.AbstractProductDerivation
Throws:
java.lang.Exception

getType

public int getType()
Returns:

beforeConfigurationLoad

public boolean beforeConfigurationLoad(org.apache.openjpa.lib.conf.Configuration conf)
Specified by:
beforeConfigurationLoad in interface org.apache.openjpa.lib.conf.ProductDerivation
Overrides:
beforeConfigurationLoad in class org.apache.openjpa.lib.conf.AbstractProductDerivation
Parameters:
conf -
Returns:

beforeConfigurationConstruct

public boolean beforeConfigurationConstruct(org.apache.openjpa.lib.conf.ConfigurationProvider cp)
Specified by:
beforeConfigurationConstruct in interface org.apache.openjpa.lib.conf.ProductDerivation
Overrides:
beforeConfigurationConstruct in class org.apache.openjpa.lib.conf.AbstractProductDerivation
Parameters:
cp -
Returns:


Copyright © 2003-2009 Terracotta, Inc.. All Rights Reserved.