Invocation API 1.1.0.Final

org.jboss.invocation
Interface Interceptor

All Known Implementing Classes:
ContextClassLoaderInterceptor, InitialInterceptor, MethodInterceptor, MethodInvokingInterceptor

public interface Interceptor

A 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

Method Summary
 Object processInvocation(InterceptorContext context)
          Process an invocation.
 

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

Invocation API 1.1.0.Final

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.