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:
- on JOTM to perform distributed transactions
- on a AC implementing jac.aspects.distrans.persistence.PersistenceAC
to store persistent data involved into the transactions
- Version:
- 1.0
- Author:
- Lionel Seinturier
- See Also:
- Serialized Form
Fields inherited from class org.objectweb.jac.core.AspectComponent |
application, blockKeywords, cr, currentConfigMethod, currentImports, firstCall, NOT_SHARED, SHARED, startWeavingCCount, startWeavingCount, startWeavingMethod, startWeavingType, systemListener, wrappers |
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 |
DisTransAC
public DisTransAC()
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 identifierbeginCNE
- begin class name expressionbeginONE
- begin object name expressionbeginMNE
- begin method name expressionendCNE
- end class name expressionendONE
- end object name expressionendMNE
- end method name expressiondecisionClassName
- 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.