|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.eventadmin.impl.handler.CacheFilters
public class CacheFilters
This is an implementation of the Filters factory that uses a cache in order to speed-up filter creation.
Field Summary |
---|
Fields inherited from interface org.apache.felix.eventadmin.impl.handler.Filters |
---|
FALSE_FILTER, TRUE_FILTER |
Constructor Summary | |
---|---|
CacheFilters(CacheMap cache,
org.osgi.framework.BundleContext context)
The constructor of this factory. |
Method Summary | |
---|---|
org.osgi.framework.Filter |
createFilter(java.lang.String filter,
org.osgi.framework.Filter nullFilter)
Create a filter for the given filter string or return the nullFilter in case the string is null. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CacheFilters(CacheMap cache, org.osgi.framework.BundleContext context)
cache
- The cache to usecontext
- The context of the bundle used to create the Filter
objectsMethod Detail |
---|
public org.osgi.framework.Filter createFilter(java.lang.String filter, org.osgi.framework.Filter nullFilter) throws org.osgi.framework.InvalidSyntaxException
createFilter
in interface Filters
filter
- The filter as a stringnullFilter
- The default value to return if filter is null
org.osgi.framework.InvalidSyntaxException
- if BundleContext.createFilter()
throws an InvalidSyntaxExceptionFilters.createFilter(java.lang.String, org.osgi.framework.Filter)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |