org.apache.jetspeed.components.interceptors
Class CachingInterceptor
java.lang.Object
org.apache.jetspeed.components.interceptors.AbstractCacheInterceptor
org.apache.jetspeed.components.interceptors.CachingInterceptor
- All Implemented Interfaces:
- org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor
- public class CachingInterceptor
- extends AbstractCacheInterceptor
CacheInterceptor
AoP Interceptor that can be used for generalized caching. The only requirement is
that intercepted methods must receive at least one (1) arguments.
CacheInterceptor ALWAYS use the first argument in the method to build the unique cache key.
- Version:
- $Id: CachingInterceptor.java 187825 2004-10-29 13:51:41Z weaver $
- Author:
- Scott T. Weaver
Constructor Summary |
CachingInterceptor(org.apache.jetspeed.cache.general.GeneralCache cache)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachingInterceptor
public CachingInterceptor(org.apache.jetspeed.cache.general.GeneralCache cache)
- Parameters:
cache
-
doCacheOperation
protected Object doCacheOperation(org.aopalliance.intercept.MethodInvocation mi,
String uniqueKey)
throws Throwable
doCacheOperation
- Specified by:
doCacheOperation
in class AbstractCacheInterceptor
- Parameters:
mi
- uniqueKey
-
- Returns:
-
- Throws:
Throwable
Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.