public class ConstantValueFilter extends AbstractConstraintFilter
IAsyncFilter.AlwaysFilter<E>, IAsyncFilter.NeverFilter<E>
component, propname, value
ALWAYS, NEVER
Constructor and Description |
---|
ConstantValueFilter()
Creates a constant value filter.
|
ConstantValueFilter(java.lang.String propname,
java.lang.Object value)
Creates a constant value filter.
|
Modifier and Type | Method and Description |
---|---|
void |
bind(java.lang.Object value)
Binds the constant value.
|
IFuture<java.lang.Boolean> |
doFilter(IService service,
java.lang.Object value)
Test if an object passes the filter.
|
void |
unbind()
Unbinds the constant value.
|
filter, getValue, getValueName, setValue, setValueName
public ConstantValueFilter()
public ConstantValueFilter(java.lang.String propname, java.lang.Object value)
public IFuture<java.lang.Boolean> doFilter(IService service, java.lang.Object value)
doFilter
in class AbstractConstraintFilter
public void bind(java.lang.Object value)
value
- The valuepublic void unbind()