org.objectweb.easybeans.transaction.interceptors
Class BMTTransactionInterceptor

java.lang.Object
  extended by org.objectweb.easybeans.transaction.interceptors.AbsTransactionInterceptor
      extended by org.objectweb.easybeans.transaction.interceptors.BMTTransactionInterceptor
All Implemented Interfaces:
EasyBeansInterceptor

public class BMTTransactionInterceptor
extends AbsTransactionInterceptor

Defines an interceptor for method that are in Bean managed mode and then in Bean Managed Transaction.

Author:
Florent Benoit

Field Summary
private  JLog logger
          Logger.
 
Constructor Summary
BMTTransactionInterceptor()
          Constructor.
Acquire the transaction manager.
 
Method Summary
 java.lang.Object intercept(EasyBeansInvocationContext invocationContext)
          Execute transaction as specified for BMT.
 
Methods inherited from class org.objectweb.easybeans.transaction.interceptors.AbsTransactionInterceptor
getTransactionManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private JLog logger
Logger.

Constructor Detail

BMTTransactionInterceptor

public BMTTransactionInterceptor()
Constructor.
Acquire the transaction manager.

Method Detail

intercept

public java.lang.Object intercept(EasyBeansInvocationContext invocationContext)
                           throws java.lang.Exception
Execute transaction as specified for BMT.

Specified by:
intercept in interface EasyBeansInterceptor
Specified by:
intercept in class AbsTransactionInterceptor
Parameters:
invocationContext - context with useful attributes on the current invocation
Returns:
result of the next invocation (to chain interceptors)
Throws:
java.lang.Exception - if interceptor fails
See Also:
EJB 3.0 specification ?12.6.1