org.apache.felix.eventadmin.impl.handler
Interface Filters

All Known Implementing Classes:
CacheFilters

public interface Filters

The factory for Filter objects. Additionally, two null filter objects are provided that either always return true or false, respectively.

Author:
Felix Project Team

Field Summary
static Filter TRUE_FILTER
          A null filter object that matches any given service reference.
 
Method Summary
 Filter createFilter(String filter)
          Create a filter for the given filter string or return the TRUE_FILTER in case the string is null.
 

Field Detail

TRUE_FILTER

static final Filter TRUE_FILTER
A null filter object that matches any given service reference.

Method Detail

createFilter

Filter createFilter(String filter)
                    throws InvalidSyntaxException
Create a filter for the given filter string or return the TRUE_FILTER in case the string is null.

Parameters:
filter - The filter as a string
Returns:
The Filter of the filter string or the TRUE_FILTER if the filter string was null
Throws:
InvalidSyntaxException - if BundleContext.createFilter() throws an InvalidSyntaxException


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.