org.jboss.cache.interceptors
Class InvocationContextInterceptor

java.lang.Object
  extended by org.jboss.cache.interceptors.Interceptor
      extended by org.jboss.cache.interceptors.MethodDispacherInterceptor
          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, trace
 
Constructor Summary
InvocationContextInterceptor()
           
 
Method Summary
protected  GlobalTransaction findGlobalTransaction(Object[] params)
           
 Object invoke(InvocationContext ctx)
          Acts like a 'switch case' that delegates the call to the appropriate method.
 
Methods inherited from class org.jboss.cache.interceptors.BaseTransactionalContextInterceptor
copyInvocationScopeOptionsToTxScope, isRollingBack, setTransactionalContext
 
Methods inherited from class org.jboss.cache.interceptors.MethodDispacherInterceptor
handleAddChildMethod, handleBlockChannelMethod, handleCommitMethod, handleDataGravitationCleanupMethod, handleEvictMethod, handleEvictVersionedNodeMethod, handleExistsMethod, handleGetDataMapMethod, handleGetChildrenNamesMethod, handleGetKeysMethod, handleGetKeyValueMethod, handleGetNodeMethod, handleLockMethod, handleMoveMethod, handleOptimisticPrepareMethod, handlePrepareMethod, handlePrintMethod, handlePutDataEraseMethod, handlePutDataEraseVersionedMethod, handlePutDataMethod, handlePutDataVersionedMethod, handlePutForExternalReadMethod, handlePutForExternalReadVersionedMethod, handlePutKeyValueMethod, handlePutKeyValueVersionedMethod, handleReleaseAllLocksMethod, handleRemoveDataMethod, handleRemoveDataVersionedMethod, handleRemoveKeyMethod, handleRemoveKeyVersionedMethod, handleRemoveNodeMethod, handleRemoveNodeVersionedMethod, handleRollbackMethod, handleUnblockChannelMethod, skipMethodCall
 
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
 
Methods inherited from interface org.jboss.cache.interceptors.InterceptorMBean
dumpStatistics, getStatisticsEnabled, resetStatistics, setStatisticsEnabled
 

Constructor Detail

InvocationContextInterceptor

public InvocationContextInterceptor()
Method Detail

invoke

public Object invoke(InvocationContext ctx)
              throws Throwable
Description copied from class: MethodDispacherInterceptor
Acts like a 'switch case' that delegates the call to the appropriate method.

Overrides:
invoke in class MethodDispacherInterceptor
Throws:
Throwable

findGlobalTransaction

protected GlobalTransaction findGlobalTransaction(Object[] params)


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