org.qi4j.api.service.qualifier
Class ServiceTags
java.lang.Object
org.qi4j.api.service.qualifier.ServiceTags
- All Implemented Interfaces:
- java.io.Serializable
public final class ServiceTags
- extends java.lang.Object
- implements java.io.Serializable
Use this as metainfo about a Service to specify tags. Easiest way to set them on a service
is to use the ServiceDeclaration.taggedWith(String...)
method.
These can be used in conjunction with the withTags() Service
Selector.
- See Also:
- Serialized Form
Constructor Summary |
ServiceTags(java.lang.String... tags)
|
Method Summary |
boolean |
hasTag(java.lang.String tag)
|
boolean |
hasTags(java.lang.String... aTags)
|
java.lang.String[] |
tags()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceTags
public ServiceTags(java.lang.String... tags)
tags
public java.lang.String[] tags()
hasTag
public boolean hasTag(java.lang.String tag)
hasTags
public boolean hasTags(java.lang.String... aTags)