[picocontainer-dev] Simplify PIcoConatienr interface/ Refactor parameter[s]
Konstantin Priblouda <kpriblouda-/[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
It seems to me that method:
<T> ComponentAdapter<T>
getComponentAdapter(Class<T> componentType,
ParameterName componentParameterName);
on PicoContainer is a bit too much on main interface.
What use it gives users of pico container?
IMHO - nothing, as it used only internally
for paranamer based resolution if resolution by type
is used, and there is more than one satifying
adapter.
This filtering of found adapters is better placed in
parameter code.
And our overmighty ComponentParameter could be split
into several classes without any problem for outside
users - typical external use (now) is to refer by
explicit key. Everything else happens implicitely
inside component adapter.
So, why not simplify things a little?
(Of course this is not intendet to hold beta,
as parameters are functional now though not really
effective )
WDYT?
----[ Konstantin Pribluda http://www.pribluda.de ]----------------
JTec quality components: http://www.pribluda.de/projects/
____________________________________________________________________________________
Be a better pen pal.
Text or chat with friends inside Yahoo! Mail. See how. http://overview.mail.yahoo.com/
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email