JBoss EJB client 1.0.5.Final

org.jboss.ejb.client
Class TransactionInterceptor

java.lang.Object
  extended by org.jboss.ejb.client.TransactionInterceptor
All Implemented Interfaces:
EJBClientInterceptor

public final class TransactionInterceptor
extends Object
implements EJBClientInterceptor

The client interceptor which associates the current transaction ID with the invocation.

Author:
David M. Lloyd

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.ejb.client.EJBClientInterceptor
EJBClientInterceptor.Registration
 
Constructor Summary
TransactionInterceptor()
           
 
Method Summary
 void handleInvocation(EJBClientInvocationContext context)
          Handle the invocation.
 Object handleInvocationResult(EJBClientInvocationContext context)
          Handle the invocation result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionInterceptor

public TransactionInterceptor()
Method Detail

handleInvocation

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

Specified by:
handleInvocation in interface EJBClientInterceptor
Parameters:
context - the invocation context
Throws:
Exception - if an invocation error occurs

handleInvocationResult

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

Specified by:
handleInvocationResult in interface EJBClientInterceptor
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.