DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1509>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1509

Project object not fully functional in BuildEvents





------- Additional Comments From [EMAIL PROTECTED]  2001-12-31 03:14 -------
It seems the BuildListener interface was designed to be unextensible. My 
suggestion: Switch to a publish/subscribe model, with a compatibility adaptor.

1) Create an ExtendedBuildListener interface.
2) Give ExtendedBuildListener one method: buildEvent(BuildEvent)
3) Make BuildEvent abstract.
4) Create concrete BuildEvent classes for each type of event to deliver.
5) Add Project.addBuildListener(Class, ExtendedBuildListener) to register for 
specific events (or categories of events).
6) Deliver these events *instead*.
7) Redo Project.addBuildListener(BuildListener) to register for the current set 
of events, using adaptors.
8) Add new events as needed, without breaking existing code.

-- Or use JMS --

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to