|Modifier and Type||Method and Description|
Find services of class
Finds a service registered with the OSGI Service Registry of type
<T> T findSingleService(Class<T> clazz, java.util.function.Predicate<T> postFilter, String bundleContextFilter)
clazz. If a
bundleContextFilteris provided, it is used to query for the service, e.g. "(operation.label=My Label*)". In addition each clazz of type T found in the OSGI Service Registry must afterwards pass the provided
postFilter. If multiple services are found, only the first one is returned.
Copyright © 2020. All rights reserved.