org.objectweb.jac.aspects.confirmation
Class ConfirmationAC.ConfirmationWrapper
java.lang.Object
|
+--org.objectweb.jac.core.Wrapper
|
+--org.objectweb.jac.aspects.confirmation.ConfirmationAC.ConfirmationWrapper
- All Implemented Interfaces:
- Advice, ConstructorInterceptor, Interceptor, MethodInterceptor, Serializable
- Enclosing class:
- ConfirmationAC
- public static class ConfirmationAC.ConfirmationWrapper
- extends Wrapper
A confirmation wrapper that wraps methods to show a confirmation
message box before actually performing the call.
- See Also:
- Serialized Form
Fields inherited from class org.objectweb.jac.core.Wrapper |
ac, cr |
ConfirmationAC.ConfirmationWrapper
public ConfirmationAC.ConfirmationWrapper(AspectComponent ac,
String message)
ConfirmationAC.ConfirmationWrapper
public ConfirmationAC.ConfirmationWrapper(AspectComponent ac)
invoke
public Object invoke(MethodInvocation invocation)
throws Throwable
- Specified by:
invoke
in interface MethodInterceptor
- Overrides:
invoke
in class Wrapper
Throwable
construct
public Object construct(ConstructorInvocation invocation)
throws Throwable
- Specified by:
construct
in interface ConstructorInterceptor
- Overrides:
construct
in class Wrapper
Throwable
confirm
public Object confirm(Interaction interaction)
throws org.objectweb.jac.aspects.confirmation.OperationCanceledException
- The wrapping method.
org.objectweb.jac.aspects.confirmation.OperationCanceledException
catchCancellation
public void catchCancellation(org.objectweb.jac.aspects.confirmation.OperationCanceledException e)
- The exception handler.