public class ExportedSeviceManager extends Object
| Constructor and Description |
|---|
ExportedSeviceManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasService(Object bean)
Query whether a bean was registered as a service with this exported service manager.
|
org.osgi.framework.ServiceRegistration |
registerService(org.osgi.framework.BundleContext bundleContext,
Object bean,
String beanName,
Map<String,Object> serviceProps,
Class<?>... interfaces)
Exports a component as an OSGi service for use by other bundles
|
void |
unregisterService(org.osgi.framework.BundleContext bundleContext,
Object bean)
De-registers an OSGi service
|
public org.osgi.framework.ServiceRegistration registerService(org.osgi.framework.BundleContext bundleContext,
Object bean,
String beanName,
Map<String,Object> serviceProps,
Class<?>... interfaces)
throws Exception
bundleContext - the bundle contextbean - the bean to registerbeanName - the name of that beanserviceProps - the service propertiesinterfaces - the interface of that beanException - if things go badlypublic boolean hasService(Object bean)
bean - the bean to querypublic void unregisterService(org.osgi.framework.BundleContext bundleContext,
Object bean)
bundleContext - the bundle contextbean - the bean to un-registerCopyright © 2018 Atlassian. All rights reserved.