|
WebObjects 5.2.3 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webobjects.eocontrol.EODelayedObserver
The EODelayedObserver class is a part of EOControl
's
change tracking mechanism. It is an abstract superclass that defines the basic
functionality for coalescing change notifications for multiple objects
and postponing notification according to a prioritized queue.
You would never create an instance of EODelayedObserver. Instead, you
would use subclasses, typically subclasses of EOAssociation (defined in EOInterface
).
See EODelayedObserverConcepts for more information.
EODelayedObserverQueue
Field Summary | |
static int |
ObserverNumberOfPriorities
Constant to represent the number of priorities(8). |
static int |
ObserverPriorityFifth
Constant to represent the priority of a notification in the queue. |
static int |
ObserverPriorityFirst
Constant to represent the priority of a notification in the queue. |
static int |
ObserverPriorityFourth
Constant to represent the priority of a notification in the queue. |
static int |
ObserverPriorityImmediate
Constant to represent the priority of a notification in the queue. |
static int |
ObserverPriorityLater
Constant to represent the priority of a notification in the queue. |
static int |
ObserverPrioritySecond
Constant to represent the priority of a notification in the queue. |
static int |
ObserverPrioritySixth
Constant to represent the priority of a notification in the queue. |
static int |
ObserverPriorityThird
Constant to represent the priority of a notification in the queue. |
Constructor Summary | |
EODelayedObserver()
|
Method Summary | |
void |
discardPendingNotification()
Sends a dequeueObserver message to the receiver's EODelayedObserverQueue
to clear it from receiving a change notification. |
void |
objectWillChange(Object object)
Implemented by EODelayedObserver to enqueue the receiver on its EODelayedObserverQueue. |
EODelayedObserverQueue |
observerQueue()
Overridden by subclasses to determine the receiver's designated EODelayedObserverQueue. |
int |
priority()
Overridden by subclasses to determine the receiver's change notification priority. |
abstract void |
subjectChanged()
Implemented by subclasses to examine the receiver's observed objects and take whatever action is necessary. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ObserverNumberOfPriorities
public static final int ObserverPriorityFifth
public static final int ObserverPriorityFirst
public static final int ObserverPriorityFourth
public static final int ObserverPriorityImmediate
public static final int ObserverPriorityLater
public static final int ObserverPrioritySecond
public static final int ObserverPrioritySixth
public static final int ObserverPriorityThird
Constructor Detail |
public EODelayedObserver()
Method Detail |
public void discardPendingNotification()
dequeueObserver
message to the receiver's EODelayedObserverQueue
to clear it from receiving a change notification. A subclass of
EODelayedObserver should invoke this method when its done observing
changes.
observerQueue()
public void objectWillChange(Object object)
objectWillChange
in interface EOObserving
object
- the input objectobserverQueue()
,
EODelayedObserverQueue.enqueueObserver(EODelayedObserver observer)
,
EOObserving.objectWillChange(Object anObject)
public EODelayedObserverQueue observerQueue()
EODelayedObserverQueue.defaultObserverQueue()
public int priority()
ObserverPriorityImmediate
ObserverPriorityFirst
ObserverPrioritySecond
ObserverPriorityThird
ObserverPriorityFourth
ObserverPriorityFifth
ObserverPrioritySixth
ObserverPriorityLater
ObserverPriorityThird
.
ObserverPriorityThird
ObserverPriorityImmediate
,
ObserverPriorityFirst
,
ObserverPrioritySecond
,
ObserverPriorityThird
,
ObserverPriorityFourth
,
ObserverPriorityFifth
,
ObserverPrioritySixth
,
ObserverPriorityLater
,
EODelayedObserverQueue
,
EODelayedObserver
public abstract void subjectChanged()
|
Last updated Thu Oct 21 15:04:16 PDT 2004. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |