java.lang.Object
org.tentackle.reflect.AbstractInterceptor
org.tentackle.pdo.WithinContextInterceptor
- All Implemented Interfaces:
InvocationHandler
,Interceptor
Implementation for the
WithinContext
interception.- Author:
- harald
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionproceed
(Object proxy, Method method, Object[] args, Object orgProxy, 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
-
WithinContextInterceptor
public WithinContextInterceptor()Creates aWithinContext
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 proxy, Method method, Object[] args, Object orgProxy, Method orgMethod, Object[] orgArgs) throws Throwable Description copied from class:AbstractInterceptor
The interceptor implementation.- Specified by:
proceed
in classAbstractInterceptor
- Parameters:
proxy
- the object to invoke the method on, null if staticmethod
- the method to invokeargs
- the method's argumentsorgProxy
- 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
-