Package org.apache.felix.dm
Interface FilterIndex
- All Known Implementing Classes:
AdapterFilterIndex,AspectFilterIndex,MultiPropertyFilterIndex
public interface FilterIndex
A filter index is an interface you can implement to create your own, optimized index for specific filter expressions.
- Author:
- Felix Project Team
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddServiceListener(org.osgi.framework.ServiceListener listener, String filter) Adds a service listener to this filter index.voidclose()Closes this filter index.List<org.osgi.framework.ServiceReference> getAllServiceReferences(String clazz, String filter) Returns all service references that match the specified class and filter.booleanisApplicable(String clazz, String filter) Determines if the combination of class and filter is applicable for this filter index.voidopen(org.osgi.framework.BundleContext context) Opens this filter index.voidremoveServiceListener(org.osgi.framework.ServiceListener listener) Removes a service listener from this filter index.voidserviceChanged(org.osgi.framework.ServiceEvent event) Invoked whenever a service event occurs.
-
Method Details
-
open
void open(org.osgi.framework.BundleContext context) Opens this filter index. -
close
void close()Closes this filter index. -
isApplicable
Determines if the combination of class and filter is applicable for this filter index. -
getAllServiceReferences
Returns all service references that match the specified class and filter. Never returns null. -
serviceChanged
void serviceChanged(org.osgi.framework.ServiceEvent event) Invoked whenever a service event occurs. -
addServiceListener
Adds a service listener to this filter index. -
removeServiceListener
void removeServiceListener(org.osgi.framework.ServiceListener listener) Removes a service listener from this filter index. If the listener is not present in the filter index, this method does nothing.
-