public class ServiceLatch
extends Object
Constructor and Description |
---|
ServiceLatch(org.osgi.framework.BundleContext bundleContext) |
Modifier and Type | Method and Description |
---|---|
void |
openOn(Consumer<org.osgi.framework.BundleContext> consumer) |
void |
openOn(Runnable runnable) |
<S> ServiceLatch |
waitFor(Class<S> serviceClass) |
<S> ServiceLatch |
waitFor(Class<S> serviceClass,
Consumer<S> serviceConsumer) |
<S> ServiceLatch |
waitFor(String filterString) |
<S> ServiceLatch |
waitFor(String filterString,
Consumer<S> serviceConsumer) |
public void openOn(Consumer<org.osgi.framework.BundleContext> consumer)
public void openOn(Runnable runnable)
public <S> ServiceLatch waitFor(Class<S> serviceClass)
public <S> ServiceLatch waitFor(Class<S> serviceClass, Consumer<S> serviceConsumer)
public <S> ServiceLatch waitFor(String filterString)
public <S> ServiceLatch waitFor(String filterString, Consumer<S> serviceConsumer)