public final class ServiceHelper extends Object
This API should not be used from within an OSGi bundle. When in an OSGi environment the BundleContext for the bundle should be used to obtain the service.
| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceHelper.CacheClearoutListener |
| Constructor and Description |
|---|
ServiceHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
getService(org.osgi.framework.BundleContext ctx,
OsgiName lookupName,
String id,
boolean dynamicRebind,
Map<String,Object> env,
boolean requireProxy) |
static Object |
getService(org.osgi.framework.BundleContext ctx,
org.osgi.framework.ServiceReference ref) |
static org.osgi.framework.ServiceReference[] |
getServiceReferences(org.osgi.framework.BundleContext ctx,
String interface1,
String filter,
String serviceName,
Map<String,Object> env) |
public static Object getService(org.osgi.framework.BundleContext ctx, OsgiName lookupName, String id, boolean dynamicRebind, Map<String,Object> env, boolean requireProxy) throws NamingException
NamingExceptionpublic static org.osgi.framework.ServiceReference[] getServiceReferences(org.osgi.framework.BundleContext ctx,
String interface1,
String filter,
String serviceName,
Map<String,Object> env)
throws NamingException
NamingExceptionpublic static Object getService(org.osgi.framework.BundleContext ctx, org.osgi.framework.ServiceReference ref)
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.