org.jboss.ejb.client
Class TransactionInterceptor
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionInterceptor
public TransactionInterceptor()
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
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.