org.objectweb.jac.aspects.distrans
Class EndTransactionWrapper
java.lang.Object
org.objectweb.jac.core.Wrapper
org.objectweb.jac.aspects.distrans.EndTransactionWrapper
- All Implemented Interfaces:
- Advice, ConstructorInterceptor, Interceptor, MethodInterceptor, 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
Fields inherited from class org.objectweb.jac.core.Wrapper |
ac, cr |
EndTransactionWrapper
public EndTransactionWrapper(AspectComponent ac)
decide
public abstract boolean decide()
- Method to decide whether the transaction is to be commited
or rollbacked.
- Returns:
- true if commit, false if rollback
invoke
public Object invoke(MethodInvocation invocation)
throws Throwable
- Specified by:
invoke
in interface MethodInterceptor
- Overrides:
invoke
in class Wrapper
- Throws:
Throwable
construct
public Object construct(ConstructorInvocation invocation)
throws Throwable
- Specified by:
construct
in interface ConstructorInterceptor
- Overrides:
construct
in class Wrapper
- Throws:
Throwable