Package org.jboss.invocation
Class DoAsInterceptor
- java.lang.Object
-
- org.jboss.invocation.DoAsInterceptor
-
- All Implemented Interfaces:
Interceptor
public final class DoAsInterceptor extends Object implements Interceptor
An interceptor which executes under the invocation'sSubject.- 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 a factory which returns the singleton instance.static DoAsInterceptorgetInstance()Get the singleton instance.ObjectprocessInvocation(InterceptorContext context)Process an invocation.
-
-
-
Method Detail
-
getInstance
public static DoAsInterceptor getInstance()
Get the singleton instance.- Returns:
- the singleton instance
-
getFactory
public static InterceptorFactory getFactory()
Get a factory which returns the singleton instance.- Returns:
- a factory which returns the singleton instance
-
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
-
-