org.jboss.cache.interceptors
Class CallInterceptor

java.lang.Object
  extended by org.jboss.cache.interceptors.Interceptor
      extended by org.jboss.cache.interceptors.CallInterceptor
All Implemented Interfaces:
InterceptorMBean

public class CallInterceptor
extends Interceptor

Always at the end of the chain, directly in front of the cache. Simply calls into the cache using reflection. If the call resulted in a modification, add the Modification to the end of the modification list keyed by the current transaction.

Although always added to the end of an optimistically locked chain as well, calls should not make it down to this interceptor unless it is a call the OptimisticNodeInterceptor knows nothing about.

Version:
$Id: CallInterceptor.java,v 1.18 2007/05/23 15:22:03 msurtani Exp $
Author:
Bela Ban

Field Summary
 
Fields inherited from class org.jboss.cache.interceptors.Interceptor
configuration, last, log, next
 
Constructor Summary
CallInterceptor()
           
 
Method Summary
 java.lang.Object invoke(InvocationContext ctx)
           
 void setCache(CacheSPI cache)
           
 void setTreeCacheInstance(CacheImpl c)
           
 
Methods inherited from class org.jboss.cache.interceptors.Interceptor
dumpStatistics, getLast, getNext, getStatisticsEnabled, isActive, isOnePhaseCommitPrepareMehod, isPreparing, isValid, resetStatistics, setLast, setNext, setStatisticsEnabled, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CallInterceptor

public CallInterceptor()
Method Detail

setCache

public void setCache(CacheSPI cache)
Overrides:
setCache in class Interceptor

setTreeCacheInstance

public void setTreeCacheInstance(CacheImpl c)

invoke

public java.lang.Object invoke(InvocationContext ctx)
                        throws java.lang.Throwable
Overrides:
invoke in class Interceptor
Throws:
java.lang.Throwable