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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionproceed(Object delegate, Method method, Object[] args, Object orgDelegate, Method orgMethod, Object[] orgArgs) The interceptor implementation.voidsetAnnotation(Annotation annotation) Sets the interceptor annotation.Methods inherited from class org.tentackle.reflect.AbstractInterceptor
getAnnotation, getChainedInterceptor, invoke, setChainedInterceptor
-
Constructor Details
-
InvokeInBuddyDelegateInterceptor
public InvokeInBuddyDelegateInterceptor()Creates aInvokeInBuddyDelegateinterceptor.
-
-
Method Details
-
setAnnotation
Description copied from interface:InterceptorSets the interceptor annotation.- Specified by:
setAnnotationin interfaceInterceptor- Overrides:
setAnnotationin 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:AbstractInterceptorThe interceptor implementation.- Specified by:
proceedin 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
-