Class ObjectCacheJCSPerClassImpl

  extended by
      extended by
All Implemented Interfaces:

public class ObjectCacheJCSPerClassImpl
extends AbstractMetaCache

A global ObjectCache implementation using a JCS region for each class. Each class name was associated with a dedicated ObjectCacheJCSImpl instance to cache given objects. This allows to define JCS cache region configuration properties for each used class in JCS configuration files.
More info see turbine-JCS.

Implementation configuration properties:

Property Key Property Values
- -

$Id: 365232 2005-12-21 22:36:07Z tomdz $
Matthew Baird (, Armin Waibel

Field Summary
Fields inherited from class
Constructor Summary
ObjectCacheJCSPerClassImpl(PersistenceBroker broker, java.util.Properties prop)
          Constructor for the MetaObjectCachePerClassImpl object
Method Summary
 void clear()
          Clears the cache
 ObjectCache getCache(Identity oid, java.lang.Object obj, int methodCall)
          This method handle all calls against the ObjectCache interface.
Methods inherited from class
cache, cacheIfNew, lookup, remove
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public ObjectCacheJCSPerClassImpl(PersistenceBroker broker,
                                  java.util.Properties prop)
Constructor for the MetaObjectCachePerClassImpl object

Method Detail


public ObjectCache getCache(Identity oid,
                            java.lang.Object obj,
                            int methodCall)
Description copied from class: AbstractMetaCache
This method handle all calls against the ObjectCache interface. Note: The parameter obj can be null - e.g. when lookup or remove method was called.

Specified by:
getCache in class AbstractMetaCache
oid - Identity of the target object.
obj - The target object itself or null if not available.
methodCall - Specifies the type of method call against the ObjectCache interface. AbstractMetaCache.METHOD_CACHE, AbstractMetaCache.METHOD_LOOKUP, AbstractMetaCache.METHOD_REMOVE.
The ObjectCache implementation.


public void clear()
Clears the cache

(C) 2002 - 2006 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
Version: 1.0.4, 2005-12-30