Package org.apache.aries.util.tracker
Class SingleServiceTracker<T>
- java.lang.Object
-
- org.apache.aries.util.tracker.SingleServiceTracker<T>
-
public final class SingleServiceTracker<T> extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SingleServiceTracker.SingleServiceListener
-
Constructor Summary
Constructors Constructor Description SingleServiceTracker(BundleContext context, java.lang.Class<T> clazz, java.lang.String filterString, SingleServiceTracker.SingleServiceListener sl)
SingleServiceTracker(BundleContext context, java.lang.Class<T> clazz, SingleServiceTracker.SingleServiceListener sl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
T
getService()
ServiceReference
getServiceReference()
void
open()
-
-
-
Constructor Detail
-
SingleServiceTracker
public SingleServiceTracker(BundleContext context, java.lang.Class<T> clazz, SingleServiceTracker.SingleServiceListener sl)
-
SingleServiceTracker
public SingleServiceTracker(BundleContext context, java.lang.Class<T> clazz, java.lang.String filterString, SingleServiceTracker.SingleServiceListener sl) throws InvalidSyntaxException
- Throws:
InvalidSyntaxException
-
-
Method Detail
-
getService
public T getService()
-
getServiceReference
public ServiceReference getServiceReference()
-
open
public void open()
-
close
public void close()
-
-