|
JAC project AOPSYS CEDRIC & LIP6 labs |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.core.Wrapper | +--org.objectweb.jac.aspects.transaction.DispatchTransactionWrapper
This wrapper wraps all JAC objects that can be part of a transaction in order to dispatch the transactions to local clones and to commit them.
Field Summary |
Fields inherited from class org.objectweb.jac.core.Wrapper |
ac |
Constructor Summary | |
DispatchTransactionWrapper(AspectComponent ac)
|
Method Summary | |
void |
commit(Wrappee wrappee,
Integer transactionId)
Commits the transaction on the wrappee (role method). |
Object |
dispatch(Interaction interaction)
Dispatches a call on a wrappee transaction-clone depending on the current transaction if any (if not, it performs a regular call). |
void |
rollback(Wrappee wrappee,
Integer transactionId)
Rollbacks the transaction on the wrappee (role method). |
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 |
public DispatchTransactionWrapper(AspectComponent ac)
Method Detail |
public Object dispatch(Interaction interaction)
public void commit(Wrappee wrappee, Integer transactionId) throws Exception
This method copies the transaction-clone state to the original object.
transactionId
- the transaction to be commited
Exception
public void rollback(Wrappee wrappee, Integer transactionId)
transactionId
- the transaction to be rollbacked
|
Contact JAC development team: Renaud Pawlak Lionel Seinturier Laurent Martelli |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |