java.lang.Object
org.tentackle.reflect.AbstractInterceptor
org.tentackle.pdo.InvokeInBuddyDelegateInterceptor
- All Implemented Interfaces:
InvocationHandler
,Interceptor
Implementation for the
InvokeInBuddyDelegate
interception.- Author:
- harald
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionproceed
(Object delegate, Method method, Object[] args, Object orgDelegate, Method orgMethod, Object[] orgArgs) The interceptor implementation.void
setAnnotation
(Annotation annotation) Sets the interceptor annotation.Methods inherited from class org.tentackle.reflect.AbstractInterceptor
getAnnotation, getChainedInterceptor, invoke, setChainedInterceptor
-
Constructor Details
-
InvokeInBuddyDelegateInterceptor
public InvokeInBuddyDelegateInterceptor()Creates aInvokeInBuddyDelegate
interceptor.
-
-
Method Details
-
setAnnotation
Description copied from interface:Interceptor
Sets the interceptor annotation.- Specified by:
setAnnotation
in interfaceInterceptor
- Overrides:
setAnnotation
in classAbstractInterceptor
- Parameters:
annotation
- the annotation, null if none
-
proceed
public Object proceed(Object delegate, Method method, Object[] args, Object orgDelegate, Method orgMethod, Object[] orgArgs) throws Throwable Description copied from class:AbstractInterceptor
The interceptor implementation.- Specified by:
proceed
in classAbstractInterceptor
- Parameters:
delegate
- the object to invoke the method on, null if staticmethod
- the method to invokeargs
- the method's argumentsorgDelegate
- the original proxy object, same as proxy if not chainedorgMethod
- the original method, same as method if not chainedorgArgs
- the original arguments, same as args if not chained- Returns:
- the method's return value
- Throws:
Throwable
- if invoked method failed
-