Re: [picocontainer-dev] Behaviour & generics
Mauro Talevi <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
Konstantin Priblouda wrote:
> ---------------%<-------------
> T getDelegate();
>
> <U> U getDelegate(Class<U> componentAdapterType);
> ---------------%<-------------
>
> Schould'nt it be:
>
> ---------------%<-------------
> ComponentAdapter<T> getDelegate();
>
> <U> U getDelegate(Class<U extends
> ComponentAdapter> componentAdapterType);
> ---------------%<-------------
>
>
It's still work in progress.
For one thing, I'd like to remove the first method altogether.
The second method signature modification you propose is fine by me, although I've been trying to see
if it can be restricted to Behaviour types instead of CA types.
Cheers
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email