org.qi4j.api.service.qualifier
Class ServiceTags
java.lang.Object
org.qi4j.api.service.qualifier.ServiceTags
- All Implemented Interfaces:
- Serializable
public final class ServiceTags
- extends Object
- implements 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceTags
public ServiceTags(String... tags)
tags
public String[] tags()
hasTag
public boolean hasTag(String tag)
hasTags
public boolean hasTags(String... aTags)