|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.codescore.managers.SubmissionListener
public class SubmissionListener
Called by Cayenne on changes to Submissions.
| Field Summary | |
|---|---|
private static List<SubUpdateListener> |
callbacks
|
private static AtomicBoolean |
listWriteLocked
Used to lock the list while traversing it in the |
private static org.apache.commons.logging.Log |
log
|
| Constructor Summary | |
|---|---|
SubmissionListener()
|
|
| Method Summary | |
|---|---|
private static void |
checkWriteLock()
Will block until the write lock is released |
static void |
deRegisterCallback(SubUpdateListener s)
Removed a registered callback |
static void |
registerCallback(SubUpdateListener s)
Add a callback |
void |
subAdded(TeamSubmission s)
Called by Cayenne post-persist of a new submission |
void |
subChanged(TeamSubmission s)
Called by Cayenne post-commit of an updated submission |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static List<SubUpdateListener> callbacks
private static AtomicBoolean listWriteLocked
private static org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public SubmissionListener()
| Method Detail |
|---|
public static void deRegisterCallback(SubUpdateListener s)
s - The listener to removepublic static void registerCallback(SubUpdateListener s)
s - The new Callbackprivate static void checkWriteLock()
public void subAdded(TeamSubmission s)
s - The new TeamSubmissionpublic void subChanged(TeamSubmission s)
s - The updated submission.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||