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

Field Summary
 
Fields inherited from class org.objectweb.jac.core.Wrapper
ac, cr
 
Constructor Summary
ConfirmationAC.ConfirmationWrapper(AspectComponent ac)
           
ConfirmationAC.ConfirmationWrapper(AspectComponent ac, String message)
           
 
Method Summary
 void catchCancellation(org.objectweb.jac.aspects.confirmation.OperationCanceledException e)
          The exception handler.
 Object confirm(Interaction interaction)
          The wrapping method.
 Object construct(ConstructorInvocation invocation)
           
 Object invoke(MethodInvocation invocation)
           
 
Methods inherited from class org.objectweb.jac.core.Wrapper
attr, attrdef, defines, getAspectComponent, getAspectComponentName, getExceptionHandlers, proceed, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfirmationAC.ConfirmationWrapper

public ConfirmationAC.ConfirmationWrapper(AspectComponent ac,
                                          String message)

ConfirmationAC.ConfirmationWrapper

public ConfirmationAC.ConfirmationWrapper(AspectComponent ac)
Method Detail

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.