|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jac.core.AspectComponent
org.objectweb.jac.aspects.synchronization.SynchronizationAC
This aspect component allows the programmer to synchronize a set of methods on different objects or classes in a centralized way (do not use the synchronized java keyword anymore).
The monitor implementation to provide synchronization is implemented by a semaphore.
Semaphore
,
Serialized FormNested Class Summary | |
class |
SynchronizationAC.SynchronizationWrapper
This inner wrapper implements the methods synchronization with a semaphore. |
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 | |
SynchronizationAC()
|
Method Summary | |
void |
synchronize(String classes,
String methods,
String objects)
This configuration method sets methods to be synchronized. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SynchronizationAC()
Method Detail |
public void synchronize(String classes, String methods, String objects)
SynchronizationConf
Two synchronized methods cannot execute at the same time on the same object.
synchronize
in interface SynchronizationConf
classes
- the classes the methods belong tomethods
- the methods to synchronizeobjects
- the instances of the classes to be synchronized
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |