|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jac.aspects.queue.MessageQueue
Handles an asynchronous message queue.
Constructor Summary | |
MessageQueue()
|
Method Summary | |
void |
fieldChanged(Object substance,
FieldItem field,
Object previousValue,
Object currentValue)
Send a message to the queue saying that the field of an object has changed, so that it will be sent to all registered clients. |
Map |
getFieldClients()
Gets the map of field change client callbacks. |
void |
notifyFieldChange(FieldChangeEvent event)
Notify registered clients of a field change. |
void |
registerFieldChange(FieldItem field,
MethodItem callback)
Register for the changes of a field. |
void |
unregisterFieldChange(FieldItem field,
MethodItem callback)
Unregister for the changes of a field. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MessageQueue()
Method Detail |
public Map getFieldClients()
public void fieldChanged(Object substance, FieldItem field, Object previousValue, Object currentValue)
substance
- the object whose field has changedfield
- the field that changedpublic void registerFieldChange(FieldItem field, MethodItem callback)
field
- the field to register forcallback
- a static method to be called when the field changes.unregisterFieldChange(FieldItem,MethodItem)
public void notifyFieldChange(FieldChangeEvent event)
event
- the FieldChangeEvent to dispatchpublic void unregisterFieldChange(FieldItem field, MethodItem callback)
field
- the field to unregister fromcallback
- a static method to to call anymore when the
field changes.registerFieldChange(FieldItem,MethodItem)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |