[picocontainer-dev] ComponentMonitor shouldn't be Generic?
"Michael Rimov" <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Organization | Centerline Computers, Inc |
| Message-ID | <1e2b01c83585$bb75a130$3260e390$@com> |
Hi All,
Getting my first stabs at Pico 2 and after poking around, I was thinking that
ComponentMonitor should not have a generic parameter associated with its type.
[ie: ComponentMonitor {}, not ComponentMonitor<T> {} ]
The reason? Because Component monitor receives notifications for all types
registered with a PicoContainer, not just a single type. Therefore, the methods
that receive notification from the callback gain nothing from being attached to
a generic type.
Any objections to reverting it to a non-generic type?
-Mike (R)
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email