org.jboss.cache.interceptors
Class InvocationContextInterceptor

java.lang.Object
  extended by org.jboss.cache.interceptors.Interceptor
      extended by org.jboss.cache.interceptors.BaseTransactionalContextInterceptor
          extended by org.jboss.cache.interceptors.InvocationContextInterceptor
All Implemented Interfaces:
InterceptorMBean, InvocationContextInterceptorMBean

public class InvocationContextInterceptor
extends BaseTransactionalContextInterceptor
implements InvocationContextInterceptorMBean

Always place this interceptor at the start of the interceptor chain to ensure invocation contexts and set up and cleaned up correctly.

Author:
Manik Surtani (manik@jboss.org)

Field Summary
 
Fields inherited from class org.jboss.cache.interceptors.BaseTransactionalContextInterceptor
txManager, txTable
 
Fields inherited from class org.jboss.cache.interceptors.Interceptor
cache, configuration, last, log, next
 
Constructor Summary
InvocationContextInterceptor()
           
 
Method Summary
protected  GlobalTransaction findGlobalTransaction(java.lang.Object[] params)
           
 java.lang.Object invoke(InvocationContext ctx)
           
 
Methods inherited from class org.jboss.cache.interceptors.BaseTransactionalContextInterceptor
copyInvocationScopeOptionsToTxScope, isRollingBack, setCache, setTransactionalContext
 
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
 
Methods inherited from interface org.jboss.cache.interceptors.InterceptorMBean
dumpStatistics, getStatisticsEnabled, resetStatistics, setStatisticsEnabled
 

Constructor Detail

InvocationContextInterceptor

public InvocationContextInterceptor()
Method Detail

invoke

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

findGlobalTransaction

protected GlobalTransaction findGlobalTransaction(java.lang.Object[] params)