Can @Reference annotations be used to directly gain access to multiple Service 
objects? 

I tried the following, using List, Arrays, and Vectors as the data types to no 
avail;

@Reference(cardinality=ReferenceCardinality.OPTIONAL_MULTIPLE)
List<SomeService> someServices;

...The build complained about the bind and unbind methods not undefined (which 
is true in my experiment class). 

Are bind/unbind required to access multiple services from a single reference; 
"manually" retrieving service objects via service refs?

If there is a shortcut as described above using @Reference (or some other 
mechanism), how is the order determined (ranking?) 

All i could find wrt to using @Reference is on the felix site [1] .. 

Thanks!

[1] http://felix.apache.org/site/scr-annotations.html#SCRAnnotations-Reference

-- 
David Gonzalez
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

Reply via email to