Package com.softwareag.mws.osgi
Class MWSServiceHelper
java.lang.Object
com.softwareag.mws.osgi.MWSServiceHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> List<org.osgi.framework.ServiceReference<T>>
getServiceReferencesList
(Class<T> clazz, String filter, org.osgi.framework.BundleContext context) static <T> T
lookupOSGIService
(Class<T> clazz) static <T> T
lookupOSGIService
(Class<T> clazz, int waitTimeout) static <T> T
lookupOSGIService
(Class<T> clazz, String filter, int waitTimeout) static <T> List<T>
lookupOSGIServices
(Class<T> clazz, String filter, int waitTimeout)
-
Constructor Details
-
MWSServiceHelper
public MWSServiceHelper()
-
-
Method Details
-
lookupOSGIService
-
lookupOSGIService
-
lookupOSGIService
- Parameters:
clazz
-waitTimeout
- in seconds- Returns:
-
lookupOSGIServices
-
getServiceReferencesList
public static <T> List<org.osgi.framework.ServiceReference<T>> getServiceReferencesList(Class<T> clazz, String filter, org.osgi.framework.BundleContext context) throws org.osgi.framework.InvalidSyntaxException - Throws:
org.osgi.framework.InvalidSyntaxException
-