org.apache.felix.framework
Class URLHandlersServiceTracker

java.lang.Object
  extended by org.apache.felix.framework.URLHandlersServiceTracker
All Implemented Interfaces:
EventListener, ServiceListener

public class URLHandlersServiceTracker
extends Object
implements 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, String filter)
           Creates a simple service tracker associated with the specified bundle context for services matching the specified filter.
 
Method Summary
 Object getService()
           
 void serviceChanged(ServiceEvent event)
           
 void unregister()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLHandlersServiceTracker

public URLHandlersServiceTracker(Felix framework,
                                 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.
Method Detail

unregister

public void unregister()

getService

public Object getService()

serviceChanged

public void serviceChanged(ServiceEvent event)
Specified by:
serviceChanged in interface ServiceListener


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.