public final class MethodInterceptor extends Object implements Interceptor
InvocationContext (or any supertype thereof). The method must belong to the given
interceptor object's class or one of its supertypes.| Constructor and Description |
|---|
MethodInterceptor(Object interceptorInstance,
Method method)
Construct a new instance.
|
MethodInterceptor(Object interceptorInstance,
Method method,
boolean changeMethod)
Construct a new instance.
|
public MethodInterceptor(Object interceptorInstance, Method method, boolean changeMethod)
interceptorInstance - the interceptor object instancemethod - the interceptor methodchangeMethod - true to change the method on the context to equal the given method, false to leave it as-ispublic Object processInvocation(InterceptorContext context) throws Exception
processInvocation in interface Interceptorcontext - the interceptor contextException - If the underlying invocation resulted in some exceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.