org.jupe.synchronisation
Class SyncBlock
java.lang.Object
org.jupe.synchronisation.SyncBlock
public final class SyncBlock
- extends java.lang.Object
This class implements a mechanism to avoid circular synchronization between
UML2 and source code. Each member of the sychronization (e.g. UML2 or Java
source code) has to block itself before commiting changes to the rest. Thus,
it will be ignored and receive no echo.
This class is a singleton.
- Author:
- Michael Pradel
TODO #88 replace this by SemaphoreBlock
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static SyncBlock getInstance()
isUml2Blocked
public boolean isUml2Blocked()
setUml2Blocked
public void setUml2Blocked(boolean blocked)
isJavaSourceBlocked
public boolean isJavaSourceBlocked()
setJavaSourceBlocked
public void setJavaSourceBlocked(boolean sourceBlocked)