public final class OsgiRegistrationUtil extends Object
Modifier and Type | Method and Description |
---|---|
static AutoCloseable |
aggregate(List<? extends AutoCloseable> list) |
static <T> AutoCloseable |
registerService(org.osgi.framework.BundleContext bundleContext,
T service,
Class<? super T>... interfaces) |
static AutoCloseable |
wrap(org.osgi.util.tracker.BundleTracker<?> bundleTracker) |
static AutoCloseable |
wrap(org.osgi.framework.ServiceRegistration<?> reg) |
static AutoCloseable |
wrap(org.osgi.util.tracker.ServiceTracker<?,?> serviceTracker) |
@SafeVarargs public static <T> AutoCloseable registerService(org.osgi.framework.BundleContext bundleContext, T service, Class<? super T>... interfaces)
public static AutoCloseable wrap(org.osgi.framework.ServiceRegistration<?> reg)
public static AutoCloseable wrap(org.osgi.util.tracker.BundleTracker<?> bundleTracker)
public static AutoCloseable wrap(org.osgi.util.tracker.ServiceTracker<?,?> serviceTracker)
public static AutoCloseable aggregate(List<? extends AutoCloseable> list)
Copyright © 2019 OpenDaylight. All rights reserved.