Uses of Class
de.mnl.osgi.coreutils.ServiceCollector
-
-
Uses of ServiceCollector in de.mnl.osgi.coreutils
Methods in de.mnl.osgi.coreutils that return ServiceCollector Modifier and Type Method Description ServiceCollector<S,T>ServiceCollector. setOnAdded(BiConsumer<ServiceReference<S>,T> onAdded)Sets a function to be called when a new service instance was added to the collection.ServiceCollector<S,T>ServiceCollector. setOnBound(BiConsumer<ServiceReference<S>,T> onBound)Sets a function to be called when the first service instance was added to the collection.ServiceCollector<S,T>ServiceCollector. setOnModfied(BiConsumer<ServiceReference<S>,T> onModified)Sets a function to be called when the preferred service changes.ServiceCollector<S,T>ServiceCollector. setOnRemoving(BiConsumer<ServiceReference<S>,T> onRemoving)Sets a function to be called before one of the collected service instances becomes unavailable.ServiceCollector<S,T>ServiceCollector. setOnUnbinding(BiConsumer<ServiceReference<S>,T> onUnbinding)Sets a function to be called before the last of the collected service instances becomes unavailable.ServiceCollector<S,T>ServiceCollector. setServiceGetter(BiFunction<BundleContext,ServiceReference<S>,T> serviceGetter)Sets the service getter function.
-