org.qi4j.api.service.qualifier
Annotation Type Tagged


@Retention(value=RUNTIME)
public @interface Tagged

Filter services based on tags. Tags can be set using the ServiceTags meta-info, like so:


 module.addService(MyService.class).setMetaInfo(ServiceTags.tags("onetag","twotag"));
 
and then at an injection point you can do this:

 @Service @Tagged("onetag") MyService service;
 
to get only a service tagged with MyService. If several match only the first match is used.


Required Element Summary
 java.lang.String[] value
           
 

Element Detail

value

public abstract java.lang.String[] value