public class ServiceModel extends Object
| Modifier and Type | Field and Description |
|---|---|
private org.osgi.framework.ServiceReference |
reference
The represented service reference.
|
| Constructor and Description |
|---|
ServiceModel(org.osgi.framework.ServiceReference reference)
Creates a new service model from the given reference.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getId() |
String |
getInterfaces() |
Map<String,String> |
getProperties() |
String |
getProvidingBundle() |
static List<ServiceModel> |
services(org.osgi.framework.BundleContext context)
Creates the list of service models from the list of the currently available services.
|
private final org.osgi.framework.ServiceReference reference
public ServiceModel(org.osgi.framework.ServiceReference reference)
reference - the referencepublic static List<ServiceModel> services(org.osgi.framework.BundleContext context)
context - the bundle contextpublic String getInterfaces()
public long getId()
public String getProvidingBundle()
Copyright © 2013–2015 Wisdom Framework. All rights reserved.