org.apache.jetspeed.components.interceptors
Class AbstractCacheInterceptor

java.lang.Object
  extended by org.apache.jetspeed.components.interceptors.AbstractCacheInterceptor
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor
Direct Known Subclasses:
CachingInterceptor, RemoveFromCacheInterceptor

public abstract class AbstractCacheInterceptor
extends Object
implements org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, org.aopalliance.aop.Advice

AbstractCacheInterceptor

Version:
$Id: AbstractCacheInterceptor.java 516448 2007-03-09 16:25:47Z ate $
Author:
Scott T. Weaver

Field Summary
protected  org.apache.jetspeed.cache.general.GeneralCache cache
           
protected  String uniquePrefix
           
 
Constructor Summary
AbstractCacheInterceptor(org.apache.jetspeed.cache.general.GeneralCache cache)
           
AbstractCacheInterceptor(org.apache.jetspeed.cache.general.GeneralCache cache, String uniquePrefix)
           
 
Method Summary
static String buildKey(String uniquePrefix, String arg0)
           buildKey
protected abstract  Object doCacheOperation(org.aopalliance.intercept.MethodInvocation mi, String uniqueKey)
           
 Object invoke(org.aopalliance.intercept.MethodInvocation mi)
           invoke
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cache

protected org.apache.jetspeed.cache.general.GeneralCache cache

uniquePrefix

protected String uniquePrefix
Constructor Detail

AbstractCacheInterceptor

public AbstractCacheInterceptor(org.apache.jetspeed.cache.general.GeneralCache cache,
                                String uniquePrefix)

AbstractCacheInterceptor

public AbstractCacheInterceptor(org.apache.jetspeed.cache.general.GeneralCache cache)
Parameters:
cache -
Method Detail

buildKey

public static final String buildKey(String uniquePrefix,
                                    String arg0)

buildKey

Parameters:
clazz -
method -
arg0 -
Returns:

invoke

public Object invoke(org.aopalliance.intercept.MethodInvocation mi)
              throws Throwable

invoke

Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
Parameters:
mi -
Returns:
Throws:
Throwable
See Also:
MethodInterceptor.invoke(org.aopalliance.intercept.MethodInvocation)

doCacheOperation

protected abstract Object doCacheOperation(org.aopalliance.intercept.MethodInvocation mi,
                                           String uniqueKey)
                                    throws Throwable
Throws:
Throwable


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