FileDocCategorySizeDatePackage
ClientTxPropagationInterceptor.javaAPI DocJBoss 4.2.12455Fri Jul 13 21:02:30 BST 2007org.jboss.aspects.tx

ClientTxPropagationInterceptor

public class ClientTxPropagationInterceptor extends Object implements org.jboss.aop.advice.Interceptor, Serializable
Comment
author
Bill Burke
version
$Revision: 57186 $

Fields Summary
private static final long
serialVersionUID
public static String
TRANSACTION_PROPAGATION_CONTEXT
public static final ClientTxPropagationInterceptor
singleton
Constructors Summary
Methods Summary
public java.lang.StringgetName()


     
   
      return "ClientTxPropagationInterceptor";
   
public java.lang.Objectinvoke(org.jboss.aop.joinpoint.Invocation invocation)

      TransactionPropagationContextFactory tpcFactory = TransactionPropagationContextUtil.getTPCFactoryClientSide();
      if (tpcFactory != null)
      {
         Object tpc = tpcFactory.getTransactionPropagationContext();
         if (tpc != null)
         {
            invocation.getMetaData().addMetaData(TRANSACTION_PROPAGATION_CONTEXT, TRANSACTION_PROPAGATION_CONTEXT, tpc);
         }
      }
      return invocation.invokeNext();
   
java.lang.ObjectreadResolve()

      return singleton;