Alex Shneyderman wrote:
public Some(@Service("configuration") EntityStore entityStore
@Tagged is just one kind of qualifier. There could be others.
I guess my point was that names are good qualifiers and might need
special treatment to keep code a bit simpler to read. @Tagged should
be possible in addition.
Well, as you can see from the blog post I wrote, and some of the
comments, names are actually terrible qualifiers (at least if a service
can only have one name). Tags are much better as they can be used
declaratively and a service can trivially have many tags without problems.
I would prefer to not treat as special any way to qualify service
instances. It might be longer to use the tagged annotation, but it is
superclear what it refers to, as opposed to just "configuration" (is it
the id, name, tag, ...?).
/Rickard
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev