RouterService Callbacks
Aidan Steele <[email protected]> Sat, 15 Oct 2005 21:30:48 +1000
| Newsgroups | gmane.network.gnutella.limewire.core.devel |
|---|---|
| Message-ID | <[email protected]> |
In my development of a web frontend for LimeWire / FrostWire, I've noticed that the current callback implementation will not be enough. Currently, only one callback can be registered and that is VisualConnectionCallback (the link between the GUI and the backend). I notice the comment in the above class: "It implements the ActivityCallback callback interface, designed to make it easy to swap UIs." This is easy enough, but multiple concurrent callbacks are not possible. I am proposing a new implementation of the ActivityCallback interface to be registered with the RouterService. This new implementation would hold a list of callbacks (GUI, HTTP, Instant Messaging, Email, et al) which would *all* be called when a specific method of the 'master' callback is called. This list could be added to during program execution through the usage of a List or somesuch. The benefit of the above approach means that we would not have to modify the existing callback (VisualConnectionCallback) at all, simply create an abstraction layer for it. Whether or not this specific method is used is not important, but further development of LimeWire / FrostWire would be greatly improved with this change. -- Aidan Steele. _______________________________________________ core-dev mailing list [email protected] http://www.limewire.org/mailman/listinfo/core-dev