org.jboss.cache.invocation
Class AbstractInvocationDelegate
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
AbstractInvocationDelegate
public AbstractInvocationDelegate()
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.