|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.codescore.managers.ClarificationListener
public class ClarificationListener
Called by Cayenne on changes to Clarifications.
| Field Summary | |
|---|---|
private static List<ClariUpdateListener> |
callbacks
|
private static AtomicBoolean |
listWriteLocked
|
private static org.apache.commons.logging.Log |
log
|
| Constructor Summary | |
|---|---|
ClarificationListener()
|
|
| Method Summary | |
|---|---|
private static void |
checkWriteLock()
Will block until the write lock is released |
void |
clariAdded(Clarification c)
Called by Cayenne post-persist |
void |
clariChanged(Clarification c)
Called by Cayenne post-commit |
static void |
deRegisterCallback(ClariUpdateListener c)
Removed a registered callback |
static void |
registerCallback(ClariUpdateListener c)
Add a callback |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static List<ClariUpdateListener> callbacks
private static AtomicBoolean listWriteLocked
private static org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public ClarificationListener()
| Method Detail |
|---|
public static void deRegisterCallback(ClariUpdateListener c)
c - The listener to removepublic static void registerCallback(ClariUpdateListener c)
c - The new callbackprivate static void checkWriteLock()
public void clariAdded(Clarification c)
c - The new Clarificationpublic void clariChanged(Clarification c)
c - The updated Clarification
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||