|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sape.carbon.core.component.proxy.AbstractInterceptor
This is the abstract interceptor that can provide basic tracking and next interceptor calling for subclassed interceptors. This implementation will also shortcut calls to DynamicProxy classes acting as interceptors by skipping their proxy classes and directly calling the Copyright 2003 Sapient
Field Summary | |
private Method |
interceptorMethod
The interceptor method object for the "invoke" method. |
protected Interceptor |
nextInterceptor
The next interceptor in the chain after this one. |
protected boolean |
nextInterceptorIsProxy
True if the next interceptor is a dynamic proxy. |
protected InvocationHandler |
nextInvocationHandler
If the next interceptor is a dynamic proxy, this will hold a reference to its invocation handler. |
Constructor Summary | |
AbstractInterceptor()
|
Method Summary | |
protected Object |
callNextInterceptor(Invocation invocation)
Will forward on an interceptor call to the next interceptor in the chain. |
void |
setNextInterceptor(Interceptor interceptor)
Prepares the interceptor chain by setting the next interceptor that this one will forward to. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.sape.carbon.core.component.proxy.Interceptor |
invoke |
Methods inherited from interface org.sape.carbon.core.component.proxy.Decorator |
getExposedInterfaces, setComponentReference |
Field Detail |
protected Interceptor nextInterceptor
protected boolean nextInterceptorIsProxy
protected InvocationHandler nextInvocationHandler
private Method interceptorMethod
Constructor Detail |
public AbstractInterceptor()
Method Detail |
public void setNextInterceptor(Interceptor interceptor)
setNextInterceptor
in interface Interceptor
interceptor
- the next interceptor in the chainprotected Object callNextInterceptor(Invocation invocation) throws Throwable
invocation
- the invocation in progress
Throwable
- the exception caused by the invocation
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |