|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.codescore.managers.CommentListener
public class CommentListener
| Field Summary | |
|---|---|
private static List<CommentUpdateListener> |
callbacks
|
private static AtomicBoolean |
listWriteLocked
Used to lock the list while traversing it |
private static org.apache.commons.logging.Log |
log
|
| Constructor Summary | |
|---|---|
CommentListener()
|
|
| Method Summary | |
|---|---|
private static void |
checkWriteLock()
Will block until the write lock is released |
void |
comAdded(Comment s)
Called by Cayenne post-persist |
void |
comChanged(Comment s)
Called by Cayenne post-commit |
static void |
deRegisterCallback(CommentUpdateListener s)
Removed a registered callback |
static void |
registerCallback(CommentUpdateListener s)
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<CommentUpdateListener> callbacks
private static AtomicBoolean listWriteLocked
private static org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public CommentListener()
| Method Detail |
|---|
public static void deRegisterCallback(CommentUpdateListener s)
s - The listener to removepublic static void registerCallback(CommentUpdateListener s)
s - The new Callbackprivate static void checkWriteLock()
public void comAdded(Comment s)
s - public void comChanged(Comment s)
s -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||