org.jupe.synchronisation
Class SyncBlock

java.lang.Object
  extended by 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

Method Summary
static SyncBlock getInstance()
           
 boolean isJavaSourceBlocked()
           
 boolean isUml2Blocked()
           
 void setJavaSourceBlocked(boolean sourceBlocked)
           
 void setUml2Blocked(boolean blocked)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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)