[webbeans-dev] Resolve by name and Container interface

Marcell Manfrin Barbacena barbacena at gmail.com
Sat Jul 5 00:59:23 EDT 2008


hi,

I was reading the spec and at section 3.2.1 it says the container interface
would have a
"public Component resolveByName(String name)"
method. However I looked at RI api and there we have a
"public Set<ComponentInstance> resolveByName(String name)".
I did understand the change in the Component class to not conflict with the
Component annotation but why is it returning a Set if the spec says a
exception should be throw when multiples component instances are found?

Ty

-- 
"Nobody knows who i really am
I never felt this empty before
And if I never need someone to come along
Who's gonna comfort me and keep me strong?"
--
Marcell Manfrin Barbacena
barbacena at gmail.com
MSN Messenger: marcell84bruk at hotmail.com
Skype: callto://marcell84bruk
+55 (83) 8808-8555 (Oi)
+55 (61) 8152-7533 (Tim)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20080705/3a8f9be4/attachment.html 


More information about the weld-dev mailing list