org.objectweb.jac.aspects.transaction
Class TransactionAC

java.lang.Object
  extended byorg.objectweb.jac.core.AspectComponent
      extended byorg.objectweb.jac.aspects.transaction.TransactionAC
All Implemented Interfaces:
BaseProgramListener, Serializable, TransactionConf

public class TransactionAC
extends AspectComponent
implements TransactionConf

This aspect component handle the transaction aspect within JAC applications.

Author:
Renaud Pawlak
See Also:
Serialized Form

Nested Class Summary
 class TransactionAC.TransactionWrapper
          This wrapper defines the transaction wrapper.
 
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
TransactionAC()
          The default constructor.
 
Method Summary
 void defineTransactionalMethods(String classExpr, String methodExpr, String objectExpr)
          Tells which methods of which objects must be transactional.
 
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

TransactionAC

public TransactionAC()
The default constructor. Wraps every application objects with a DispatchTransactionWrapper instance.

See Also:
DispatchTransactionWrapper, DispatchTransactionWrapper.dispatch(org.objectweb.jac.core.Interaction)
Method Detail

defineTransactionalMethods

public void defineTransactionalMethods(String classExpr,
                                       String methodExpr,
                                       String objectExpr)
Description copied from interface: TransactionConf
Tells which methods of which objects must be transactional.

Specified by:
defineTransactionalMethods in interface TransactionConf
Parameters:
classExpr - a class pointcut expression
methodExpr - a method pointcut expression
objectExpr - an object pointcut expression
See Also:
TransactionAC.TransactionWrapper