org.objectweb.jac.aspects.distrans
Class DisTransAC

java.lang.Object
  |
  +--org.objectweb.jac.core.AspectComponent
        |
        +--org.objectweb.jac.aspects.distrans.DisTransAC
All Implemented Interfaces:
BaseProgramListener, Serializable

public class DisTransAC
extends AspectComponent

This AC implements some transactional behaviors for business methods. This AC relies:

Version:
1.0
Author:
Lionel Seinturier
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.jac.core.AspectComponent
application, blockKeywords, cr, currentConfigMethod, currentImports, firstCall, NOT_SHARED, SHARED, startWeavingCCount, startWeavingCount, startWeavingMethod, startWeavingType, systemListener, wrappers
 
Fields inherited from interface org.objectweb.jac.core.BaseProgramListener
FOUND_OBJECT
 
Constructor Summary
DisTransAC()
           
 
Method Summary
 void delimitTransaction(String txid, String beginCNE, String beginONE, String beginMNE, String endCNE, String endONE, String endMNE, String decisionClassName)
          Delimit a transaction.
 
Methods inherited from class org.objectweb.jac.core.AspectComponent
addWrapper, afterApplicationStarted, afterRunningWrapper, afterWrap, afterWrappeeInit, attr, attrdef, beforeConfiguration, beforeReload, beforeRunningWrapper, beforeWrappeeInit, configure, defines, defineTimer, doRegister, doUnregister, error, getAC, getApplication, getBlockKeywords, getConfigurationMethods, getConfigurationMethodsName, getConfigurationMethodsName, getDefaultConfigs, getName, getNameCounters, getWrappers, init, isConfigurationMethod, isSystemListener, onExit, pointcut, pointcut, pointcut, pointcut, pointcut, pointcut, pointcut, pointcut, setApplication, setAttribute, setAttribute, setAttribute, setSystemListener, simulateUsingNewInstance, unweave, unwrapAll, updateNameCounters, warning, weave, whenClone, whenCloseDisplay, whenConfigured, whenDeleted, whenDeserialized, whenFree, whenGetObjects, whenNameObject, whenObjectMiss, whenReload, whenRemoteInstantiation, whenSerialized, whenTopologyChanged, whenUsingNewClass, whenUsingNewInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisTransAC

public DisTransAC()
Method Detail

delimitTransaction

public void delimitTransaction(String txid,
                               String beginCNE,
                               String beginONE,
                               String beginMNE,
                               String endCNE,
                               String endONE,
                               String endMNE,
                               String decisionClassName)
Delimit a transaction. The transaction will begin before the method designated by the pointcut designated by the 3 first parameter, and will end after the pointcut designated by the 3 last ones.

Parameters:
txid - the transaction identifier
beginCNE - begin class name expression
beginONE - begin object name expression
beginMNE - begin method name expression
endCNE - end class name expression
endONE - end object name expression
endMNE - end method name expression
decisionClassName - the name of the class defining the method for deciding whether the transaction is to be commited or rollbacked. This must be a subclass of EndTransactionWrapper.