JAC project
AOPSYS
CEDRIC & LIP6 labs

org.objectweb.jac.aspects.distrans
Class EndTransactionWrapper

java.lang.Object
  |
  +--org.objectweb.jac.core.Wrapper
        |
        +--org.objectweb.jac.aspects.distrans.EndTransactionWrapper
All Implemented Interfaces:
Serializable

public abstract class EndTransactionWrapper
extends Wrapper

This wrapper delimits the end of a transaction. This is an abstract class that needs an decide() implementation to commit or rollback the transaction.

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

Field Summary
 
Fields inherited from class org.objectweb.jac.core.Wrapper
ac
 
Constructor Summary
EndTransactionWrapper(AspectComponent ac)
           
 
Method Summary
abstract  boolean decide()
          Method to decide whether the transaction is to be commited or rollbacked.
 Object end(Interaction interaction)
           
 
Methods inherited from class org.objectweb.jac.core.Wrapper
attr, attrdef, defines, getAspectComponent, getAspectComponentName, getExceptionHandlers, proceed, setAspectComponent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EndTransactionWrapper

public EndTransactionWrapper(AspectComponent ac)
Method Detail

decide

public abstract boolean decide()
Method to decide whether the transaction is to be commited or rollbacked.

Returns:
true if commit, false if rollback

end

public Object end(Interaction interaction)

Contact JAC development team:
Renaud Pawlak
Lionel Seinturier
Laurent Martelli