org.objectweb.jac.aspects.timestamp
Class TimestampAC

java.lang.Object
  extended byorg.objectweb.jac.core.AspectComponent
      extended byorg.objectweb.jac.aspects.timestamp.TimestampAC
All Implemented Interfaces:
BaseProgramListener, Serializable, TimestampConf

public class TimestampAC
extends AspectComponent
implements TimestampConf

See Also:
Serialized Form

Nested Class Summary
static class TimestampAC.Wrapper
           
 
Field Summary
static String FOLLOW
           
 
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
TimestampAC()
           
 
Method Summary
 void declareTimestampedClasses(String classExpr, String wrappeeExpr, String repositoryName)
          Declares which objects should have timestamps
 void followLink(FieldItem link, boolean follow)
          Specifies that objects at the end of a link should be touched when an object is touched.
 
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
 

Field Detail

FOLLOW

public static final String FOLLOW
See Also:
Constant Field Values
Constructor Detail

TimestampAC

public TimestampAC()
Method Detail

declareTimestampedClasses

public void declareTimestampedClasses(String classExpr,
                                      String wrappeeExpr,
                                      String repositoryName)
Description copied from interface: TimestampConf
Declares which objects should have timestamps

Specified by:
declareTimestampedClasses in interface TimestampConf
Parameters:
classExpr - which classes should have a timestamp
wrappeeExpr - which instances should have a timestamp
repositoryName - name of Timestamps object to store stamps into

followLink

public void followLink(FieldItem link,
                       boolean follow)
Description copied from interface: TimestampConf
Specifies that objects at the end of a link should be touched when an object is touched.

Specified by:
followLink in interface TimestampConf
Parameters:
link - the link to follow
follow - wether to follow the link or not