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 java.lang.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  GeneralCache cache
           
protected  java.lang.String uniquePrefix
           
 
Constructor Summary
AbstractCacheInterceptor(GeneralCache cache)
           
AbstractCacheInterceptor(GeneralCache cache, java.lang.String uniquePrefix)
           
 
Method Summary
static java.lang.String buildKey(java.lang.String uniquePrefix, java.lang.String arg0)
           buildKey
protected abstract  java.lang.Object doCacheOperation(org.aopalliance.intercept.MethodInvocation mi, java.lang.String uniqueKey)
           
 java.lang.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 GeneralCache cache

uniquePrefix

protected java.lang.String uniquePrefix
Constructor Detail

AbstractCacheInterceptor

public AbstractCacheInterceptor(GeneralCache cache,
                                java.lang.String uniquePrefix)

AbstractCacheInterceptor

public AbstractCacheInterceptor(GeneralCache cache)
Parameters:
cache -
Method Detail

buildKey

public static final java.lang.String buildKey(java.lang.String uniquePrefix,
                                              java.lang.String arg0)

buildKey

Parameters:
clazz -
method -
arg0 -
Returns:

invoke

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

invoke

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

doCacheOperation

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


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