public class TagFilter<T> extends java.lang.Object implements IAsyncFilter<T>
IAsyncFilter.AlwaysFilter, IAsyncFilter.NeverFilter
Modifier and Type | Field and Description |
---|---|
protected IExternalAccess |
component
The component.
|
protected java.util.Collection<java.lang.String> |
tags
The search tags.
|
ALWAYS, NEVER
Constructor and Description |
---|
TagFilter(IExternalAccess component,
java.util.Collection<java.lang.String> tags)
Create a new tag filter.
|
TagFilter(IExternalAccess component,
java.lang.String... tags)
Create a new tag filter.
|
Modifier and Type | Method and Description |
---|---|
IFuture<java.lang.Boolean> |
filter(T ts)
Filter if a service contains all the tags.
|
protected IExternalAccess component
protected java.util.Collection<java.lang.String> tags
public TagFilter(IExternalAccess component, java.lang.String... tags)
public TagFilter(IExternalAccess component, java.util.Collection<java.lang.String> tags)
public IFuture<java.lang.Boolean> filter(T ts)
filter
in interface IAsyncFilter<T>