org.jboss.cache.invocation
Class AbstractInvocationDelegate

java.lang.Object
  extended by org.jboss.cache.invocation.AbstractInvocationDelegate
Direct Known Subclasses:
CacheInvocationDelegate, NodeInvocationDelegate

public abstract class AbstractInvocationDelegate
extends Object

The JBoss Cache hand-wired interceptor stack. A "minimal" AOP framework which uses delegation through an interceptor chain rather than any bytecode manipulation.

This class provides some generic behaviour such as the construction of an InvocationContext which is passed up the interceptor chain.

Since:
2.1.0
Author:
Manik Surtani (manik@jboss.org)
See Also:
Interceptor, InvocationContext

Field Summary
protected  CacheImpl cache
           
protected  Configuration configuration
           
protected  Interceptor interceptorChain
           
protected  InvocationContextContainer invocationContextContainer
           
protected  org.apache.commons.logging.Log log
           
protected  boolean originLocal
           
 
Constructor Summary
AbstractInvocationDelegate()
           
 
Method Summary
protected  void assertIsConstructed()
           
protected  Object invoke(MethodCall call)
          Passes a method call up the interceptor chain.
protected  Object invoke(MethodCall call, boolean skipCacheStatusCheck)
          Passes a method call up the interceptor chain, optionally allowing you to skip cache status checks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

interceptorChain

protected Interceptor interceptorChain

cache

protected CacheImpl cache

log

protected org.apache.commons.logging.Log log

configuration

protected Configuration configuration

originLocal

protected boolean originLocal

invocationContextContainer

protected InvocationContextContainer invocationContextContainer
Constructor Detail

AbstractInvocationDelegate

public AbstractInvocationDelegate()
Method Detail

invoke

protected Object invoke(MethodCall call)
                 throws CacheException
Passes a method call up the interceptor chain.

Parameters:
call - methodcall to pass
Returns:
an Object, the generic return type for the interceptors.
Throws:
Throwable - in the event of problems
CacheException

invoke

protected Object invoke(MethodCall call,
                        boolean skipCacheStatusCheck)
                 throws CacheException
Passes a method call up the interceptor chain, optionally allowing you to skip cache status checks.

Parameters:
call - methodcall to pass
Returns:
an Object, the generic return type for the interceptors.
Throws:
Throwable - in the event of problems
CacheException

assertIsConstructed

protected void assertIsConstructed()


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