|
Invocation API 1.1.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.invocation.MethodInterceptor
public final class MethodInterceptor
A method interceptor. The target method should be non-final and must accept no parameters or a single
parameter of type InvocationContext (or any supertype thereof). The method must belong to the given
interceptor object's class or one of its supertypes.
| Constructor Summary | |
|---|---|
MethodInterceptor(Object interceptorInstance,
Method method)
Construct a new instance. |
|
MethodInterceptor(Object interceptorInstance,
Method method,
boolean changeMethod)
Construct a new instance. |
|
| Method Summary | |
|---|---|
Object |
processInvocation(InterceptorContext context)
Process an invocation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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-is
public MethodInterceptor(Object interceptorInstance,
Method method)
interceptorInstance - the interceptor object instancemethod - the interceptor method| Method Detail |
|---|
public Object processInvocation(InterceptorContext context)
throws Exception
processInvocation in interface Interceptorcontext - the interceptor context
Exception - If the underlying invocation resulted in some exception
|
Invocation API 1.1.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||