public class OsgiServiceUtil extends Object
Modifier and Type | Method and Description |
---|---|
static <T> List<T> |
getServiceImpls(Class<T> contract,
org.osgi.framework.BundleContext context)
Locate all implementors of the given service contract in the given OSGi buindle context
|
public static <T> List<T> getServiceImpls(Class<T> contract, org.osgi.framework.BundleContext context)
T
- The Java type of the service to locatecontract
- The service contract for which to locate implementorscontext
- The OSGi bundle contextCopyright © 2001-2013 Red Hat, Inc. All Rights Reserved.