Re: [picocontainer-dev] ComponentMonitor shouldn't be Generic?
Mauro Talevi <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
Michael Rimov wrote:
> 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?
>
Nope - agree with you.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email