org.apache.felix.framework
Class URLHandlersServiceTracker
java.lang.Object
org.apache.felix.framework.URLHandlersServiceTracker
- All Implemented Interfaces:
- java.util.EventListener, org.osgi.framework.ServiceListener
public class URLHandlersServiceTracker
- extends java.lang.Object
- implements org.osgi.framework.ServiceListener
This class implements a simple service tracker that maintains a
service object reference to the "best" service available at any
given time that matches the filter associated with the tracker.
The best service is the one with the one with the highest ranking
and lowest service identifier.
Constructor Summary |
URLHandlersServiceTracker(Felix framework,
java.lang.String filter)
Creates a simple service tracker associated with the specified bundle
context for services matching the specified filter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLHandlersServiceTracker
public URLHandlersServiceTracker(Felix framework,
java.lang.String filter)
Creates a simple service tracker associated with the specified bundle
context for services matching the specified filter.
- Parameters:
context
- the bundle context used for tracking services.filter
- the filter used for matching services.
unregister
public void unregister()
getService
public java.lang.Object getService()
serviceChanged
public void serviceChanged(org.osgi.framework.ServiceEvent event)
- Specified by:
serviceChanged
in interface org.osgi.framework.ServiceListener
Copyright © 2006-2009 The Apache Software Foundation. All Rights Reserved.