JBoss EJB client 1.0.5.Final

org.jboss.ejb.client
Interface EJBClientInterceptor

Type Parameters:
A - the receiver attachment type to which this interceptor applies; use Object for protocol-independent interceptors
All Known Implementing Classes:
ReceiverInterceptor, TransactionInterceptor

public interface EJBClientInterceptor

An EJB client interceptor, possibly protocol-specific. Client interceptors should not store any state locally since they are shared between all threads.

Author:
David M. Lloyd

Nested Class Summary
static class EJBClientInterceptor.Registration
          An interceptor registration handle.
 
Method Summary
 void handleInvocation(EJBClientInvocationContext context)
          Handle the invocation.
 Object handleInvocationResult(EJBClientInvocationContext context)
          Handle the invocation result.
 

Method Detail

handleInvocation

void handleInvocation(EJBClientInvocationContext context)
                      throws Exception
Handle the invocation. Implementations may short-circuit the invocation by throwing an exception. This method should process any per-interceptor state and return.

Parameters:
context - the invocation context
Throws:
Exception - if an invocation error occurs

handleInvocationResult

Object handleInvocationResult(EJBClientInvocationContext context)
                              throws Exception
Handle the invocation result. The implementation should generally call EJBClientInvocationContext.getResult() immediately and perform any post-invocation cleanup task in a finally block.

Parameters:
context - the invocation context
Returns:
the invocation result, if any
Throws:
Exception - if an invocation error occurred

JBoss EJB client 1.0.5.Final

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.