Package org.jboss.invocation
Class AccessCheckingInterceptor
- java.lang.Object
-
- org.jboss.invocation.AccessCheckingInterceptor
-
- All Implemented Interfaces:
Interceptor
public final class AccessCheckingInterceptor extends Object implements Interceptor
An interceptor which enables access checking for the duration of the invocation.- Author:
- David M. Lloyd
-
-
Field Summary
-
Fields inherited from interface org.jboss.invocation.Interceptor
EMPTY_ARRAY
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InterceptorFactorygetFactory()Get the singleton factory instance.static AccessCheckingInterceptorgetInstance()Get the singleton instance.ObjectprocessInvocation(InterceptorContext context)Process an invocation.
-
-
-
Method Detail
-
getInstance
public static AccessCheckingInterceptor getInstance()
Get the singleton instance.- Returns:
- the singleton instance
-
getFactory
public static InterceptorFactory getFactory()
Get the singleton factory instance.- Returns:
- the singleton factory instance
-
processInvocation
public Object processInvocation(InterceptorContext context) throws Exception
Description copied from interface:InterceptorProcess 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
-
-