Package org.jboss.invocation
Interface Interceptor
-
- All Known Implementing Classes:
AccessCheckingInterceptor,ContextClassLoaderInterceptor,DoAsInterceptor,InitialInterceptor,MethodInterceptor,MethodInvokingInterceptor,SecurityIdentityInterceptor
public interface InterceptorA processor for invocations. May perform some action, including but not limited to handling the invocation, before or in lieu of passing it on to the dispatcher or another processor.- Author:
- Carlo de Wolf, David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description static Interceptor[]EMPTY_ARRAYAn empty interceptor array.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectprocessInvocation(InterceptorContext context)Process an invocation.
-
-
-
Field Detail
-
EMPTY_ARRAY
static final Interceptor[] EMPTY_ARRAY
An empty interceptor array.
-
-
Method Detail
-
processInvocation
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.- Parameters:
context- the interceptor context- Returns:
- the result of the invocation
- Throws:
Exception- If the underlying invocation resulted in some exception
-
-