public class ServicePair<T> extends Object
Constructor and Description |
---|
ServicePair(org.osgi.framework.BundleContext context,
org.osgi.framework.ServiceReference serviceRef) |
ServicePair(org.osgi.framework.BundleContext context,
org.osgi.framework.ServiceReference serviceRef,
T service) |
Modifier and Type | Method and Description |
---|---|
T |
get() |
org.osgi.framework.ServiceReference |
getReference() |
boolean |
isValid() |
void |
unget() |
public ServicePair(org.osgi.framework.BundleContext context, org.osgi.framework.ServiceReference serviceRef)
public ServicePair(org.osgi.framework.BundleContext context, org.osgi.framework.ServiceReference serviceRef, T service)
public T get()
public boolean isValid()
public void unget()
public org.osgi.framework.ServiceReference getReference()
Copyright © 2014. All rights reserved.