org.objectweb.jac.aspects.confirmation
Class ConfirmationAC

java.lang.Object
  extended byorg.objectweb.jac.core.AspectComponent
      extended byorg.objectweb.jac.aspects.confirmation.ConfirmationAC
All Implemented Interfaces:
BaseProgramListener, ConfirmationConf, Serializable

public class ConfirmationAC
extends AspectComponent
implements ConfirmationConf

The confirmation aspect implementation (allows the user to add confirmation popups before committing.

See Also:
Serialized Form

Nested Class Summary
 class ConfirmationAC.ConfirmationWrapper
          A confirmation wrapper that wraps methods to show a confirmation message box before actually performing the call.
 
Field Summary
 
Fields inherited from class org.objectweb.jac.core.AspectComponent
application, blockKeywords, cr, currentConfigMethod, currentImports, firstCall, NOT_SHARED, SHARED, startWeavingCCount, startWeavingCount, startWeavingMethod, startWeavingType, systemListener, wrappers
 
Fields inherited from interface org.objectweb.jac.core.BaseProgramListener
FOUND_OBJECT
 
Constructor Summary
ConfirmationAC()
           
 
Method Summary
 void confirm(String classes, String methods, String objects)
          Allows the user to set some methods to be confirmed.
 void confirm(String classes, String methods, String objects, String message)
          Tells that some methods should be confirmed, with a custom message.
 
Methods inherited from class org.objectweb.jac.core.AspectComponent
addWrapper, afterApplicationStarted, afterRunningWrapper, afterWrap, afterWrappeeInit, attr, attrdef, beforeConfiguration, beforeReload, beforeRunningWrapper, beforeWrappeeInit, configure, defines, defineTimer, doRegister, doUnregister, error, getAC, getApplication, getBlockKeywords, getConfigurationMethods, getConfigurationMethodsName, getConfigurationMethodsName, getDefaultConfigs, getName, getNameCounters, getWrappers, init, isConfigurationMethod, isSystemListener, onExit, pointcut, pointcut, pointcut, pointcut, pointcut, pointcut, pointcut, pointcut, setApplication, setAttribute, setAttribute, setAttribute, setSystemListener, simulateUsingNewInstance, unweave, unwrapAll, updateNameCounters, warning, weave, whenClone, whenCloseDisplay, whenConfigured, whenDeleted, whenDeserialized, whenFree, whenGetObjects, whenNameObject, whenObjectMiss, whenReload, whenRemoteInstantiation, whenSerialized, whenTopologyChanged, whenUsingNewClass, whenUsingNewInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfirmationAC

public ConfirmationAC()
Method Detail

confirm

public void confirm(String classes,
                    String methods,
                    String objects)
Description copied from interface: ConfirmationConf
Allows the user to set some methods to be confirmed.

Specified by:
confirm in interface ConfirmationConf
Parameters:
classes - the classes the methods belongs to
methods - a method-pointcut expression denoting sets of methods
objects - the instances the poincut applies to

confirm

public void confirm(String classes,
                    String methods,
                    String objects,
                    String message)
Description copied from interface: ConfirmationConf
Tells that some methods should be confirmed, with a custom message.

Specified by:
confirm in interface ConfirmationConf
Parameters:
classes - the classes the methods belongs to (a class-pointcut expression)
methods - a method-pointcut expression denoting sets of methods
objects - the instances the poincut applies to
message - the custom confirmation message