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 4968 2008-01-03 19:17:09Z manik.surtani@jboss.com $
Author:
Bela Ban

Field Summary
 
Fields inherited from class org.jboss.cache.interceptors.Interceptor
cache, configuration, last, log, next, trace
 
Constructor Summary
CallInterceptor()
           
 
Method Summary
 Object invoke(InvocationContext ctx)
          Using this method call for forwarding a call in the chain is not redable and error prone in the case of interceptors extending other interceptors.
 
Methods inherited from class org.jboss.cache.interceptors.Interceptor
assertTransactionValid, dumpStatistics, getLast, getNext, getStatisticsEnabled, initLogger, isActive, isPreparing, isValid, nextInterceptor, peekNode, resetStatistics, setCache, 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

invoke

public Object invoke(InvocationContext ctx)
              throws Throwable
Description copied from class: Interceptor
Using this method call for forwarding a call in the chain is not redable and error prone in the case of interceptors extending other interceptors. This metod rather refers to interceptor doing its business operations rather than delegating to the nextInterceptor interceptor in chain. For delegation please use Interceptor.nextInterceptor(org.jboss.cache.InvocationContext)

Overrides:
invoke in class Interceptor
Throws:
Throwable


Copyright © 2008 JBoss, a division of Red Hat. All Rights Reserved.