Package org.jboss.invocation
Class MethodInvokingInterceptor
- java.lang.Object
-
- org.jboss.invocation.MethodInvokingInterceptor
-
- All Implemented Interfaces:
Interceptor
public final class MethodInvokingInterceptor extends Object implements Interceptor
An interceptor which always invokes one specific method on one specific object given the parameters from the invocation context.- Author:
- David M. Lloyd
-
-
Field Summary
-
Fields inherited from interface org.jboss.invocation.Interceptor
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description MethodInvokingInterceptor(Object target, Method method)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectprocessInvocation(InterceptorContext context)Process an invocation.
-
-
-
Method Detail
-
processInvocation
public Object processInvocation(InterceptorContext context) throws Exception
Process an invocation. The invocation can be handled directly, or passed on to the next processor in the chain.- Specified by:
processInvocationin interfaceInterceptor- Parameters:
context- the interceptor context- Returns:
- the result of the invocation
- Throws:
Exception- If the underlying invocation resulted in some exception
-
-