Bug 1878 - Observer .added, and .deleted, needs Observable parameter
Summary: Observer .added, and .deleted, needs Observable parameter
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P1 normal
Target Milestone: ---
Assignee: Andrew Cagney
URL:
Keywords:
Depends on:
Blocks: 1553
  Show dependency treegraph
 
Reported: 2005-11-17 22:27 UTC by Andrew Cagney
Modified: 2005-11-17 22:32 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Cagney 2005-11-17 22:27:30 UTC
The Observer .added, and .deleted callbacks should include the observable
parameter (typically the task).
Comment 1 Andrew Cagney 2005-11-17 22:32:11 UTC
Added:

Observer.addedTo (Object)
Observer.deletedFrom (Object)
Observer.addFailed (Object, Throwable)

Index: frysk-core/frysk/proc/ChangeLog
2005-11-17  Andrew Cagney  <cagney@redhat.com>

        * Observer.java: Replace .added, and .deleted with .addedTo,
        .deletedFrom, and .addedFailed.
        * Observable.java (fail): Add.
        * TaskObservable.java (TaskObservable(Task)): Add consructor.
        * Task.java: Update.
        * TestLib.java: Update.
        * TestTaskObserver.java: Update.

Index: frysk-gui/frysk/gui/monitor/ChangeLog
2005-11-17  Andrew Cagney  <cagney@redhat.com>

        * observers/ObserverRoot.java: Replace .added, and .deleted with
        .addedTo, .deletedFrom, and .addFailed.
        * EventLogger.java: Ditto.