org.apache.jetspeed.components.portletregistry
Class RegistryApplicationCache

java.lang.Object
  extended by org.apache.jetspeed.components.portletregistry.RegistryApplicationCache
All Implemented Interfaces:
org.apache.ojb.broker.cache.ObjectCache

public class RegistryApplicationCache
extends Object
implements org.apache.ojb.broker.cache.ObjectCache

OJB cache

Author:
dtaylor

Field Summary
private static List listeners
           
private static org.apache.jetspeed.cache.JetspeedCache nameCache
           
private static org.apache.jetspeed.cache.JetspeedCache oidCache
           
private static org.apache.jetspeed.components.portletregistry.PortletRegistry registry
           
 
Constructor Summary
RegistryApplicationCache(org.apache.ojb.broker.PersistenceBroker broker, Properties props)
           
 
Method Summary
 void cache(org.apache.ojb.broker.Identity oid, Object obj)
           
static void cacheAdd(org.apache.ojb.broker.Identity oid, Object obj)
           
static void cacheClear()
           
static void cacheInit(org.apache.jetspeed.components.portletregistry.PortletRegistry r, org.apache.jetspeed.cache.JetspeedCache o, org.apache.jetspeed.cache.JetspeedCache n, List l)
           
static Object cacheLookup(org.apache.ojb.broker.Identity oid)
           
static void cacheRemove(org.apache.ojb.broker.Identity oid)
          cacheRemove Remove identified object from object and node caches.
static void cacheRemoveQuiet(String key, RegistryCacheObjectWrapper w)
           
 void clear()
           
 Object lookup(org.apache.ojb.broker.Identity oid)
           
 void remove(org.apache.ojb.broker.Identity oid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

oidCache

private static org.apache.jetspeed.cache.JetspeedCache oidCache

nameCache

private static org.apache.jetspeed.cache.JetspeedCache nameCache

registry

private static org.apache.jetspeed.components.portletregistry.PortletRegistry registry

listeners

private static List listeners
Constructor Detail

RegistryApplicationCache

public RegistryApplicationCache(org.apache.ojb.broker.PersistenceBroker broker,
                                Properties props)
Method Detail

cacheInit

public static void cacheInit(org.apache.jetspeed.components.portletregistry.PortletRegistry r,
                             org.apache.jetspeed.cache.JetspeedCache o,
                             org.apache.jetspeed.cache.JetspeedCache n,
                             List l)

lookup

public Object lookup(org.apache.ojb.broker.Identity oid)
Specified by:
lookup in interface org.apache.ojb.broker.cache.ObjectCache

cacheLookup

public static Object cacheLookup(org.apache.ojb.broker.Identity oid)

cache

public void cache(org.apache.ojb.broker.Identity oid,
                  Object obj)
Specified by:
cache in interface org.apache.ojb.broker.cache.ObjectCache

cacheAdd

public static void cacheAdd(org.apache.ojb.broker.Identity oid,
                            Object obj)

clear

public void clear()
Specified by:
clear in interface org.apache.ojb.broker.cache.ObjectCache

cacheClear

public static void cacheClear()

remove

public void remove(org.apache.ojb.broker.Identity oid)
Specified by:
remove in interface org.apache.ojb.broker.cache.ObjectCache

cacheRemove

public static void cacheRemove(org.apache.ojb.broker.Identity oid)
cacheRemove Remove identified object from object and node caches.

Parameters:
oid - object identity

cacheRemoveQuiet

public static void cacheRemoveQuiet(String key,
                                    RegistryCacheObjectWrapper w)


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.