org.apache.aries.util.tracker
Class SingleServiceTracker<T>

java.lang.Object
  extended by org.apache.aries.util.tracker.SingleServiceTracker<T>

public final class SingleServiceTracker<T>
extends Object


Nested Class Summary
static interface SingleServiceTracker.SingleServiceListener
           
 
Constructor Summary
SingleServiceTracker(org.osgi.framework.BundleContext context, Class<T> clazz, SingleServiceTracker.SingleServiceListener sl)
           
SingleServiceTracker(org.osgi.framework.BundleContext context, Class<T> clazz, String filterString, SingleServiceTracker.SingleServiceListener sl)
           
 
Method Summary
 void close()
           
 T getService()
           
 org.osgi.framework.ServiceReference getServiceReference()
           
 void open()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleServiceTracker

public SingleServiceTracker(org.osgi.framework.BundleContext context,
                            Class<T> clazz,
                            SingleServiceTracker.SingleServiceListener sl)

SingleServiceTracker

public SingleServiceTracker(org.osgi.framework.BundleContext context,
                            Class<T> clazz,
                            String filterString,
                            SingleServiceTracker.SingleServiceListener sl)
                     throws org.osgi.framework.InvalidSyntaxException
Throws:
org.osgi.framework.InvalidSyntaxException
Method Detail

getService

public T getService()

getServiceReference

public org.osgi.framework.ServiceReference getServiceReference()

open

public void open()

close

public void close()


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.