public class ServiceData extends Object
ServiceData represents Service Type @see ServiceStateMBean.SERVICE_TYPE. It is a codec for the
CompositeData representing an OSGi ServiceReference.
| Constructor and Description |
|---|
ServiceData(org.osgi.framework.ServiceReference<?> serviceReference) |
| Modifier and Type | Method and Description |
|---|---|
static ServiceData |
from(CompositeData compositeData)
Constructs a
ServiceData object from the given CompositeData |
long |
getBundleId() |
List<PropertyData<? extends Object>> |
getProperties() |
long |
getServiceId() |
String[] |
getServiceInterfaces() |
long[] |
getUsingBundles() |
CompositeData |
toCompositeData()
Returns CompositeData representing a ServiceReference typed by
ServiceStateMBean.SERVICE_TYPE. |
CompositeData |
toCompositeData(Collection<String> itemNames) |
public ServiceData(org.osgi.framework.ServiceReference<?> serviceReference)
throws IllegalArgumentException
IllegalArgumentExceptionpublic CompositeData toCompositeData()
ServiceStateMBean.SERVICE_TYPE.public CompositeData toCompositeData(Collection<String> itemNames)
public static ServiceData from(CompositeData compositeData)
ServiceData object from the given CompositeDatacompositeData - IlleglArugmentException - if compositeData is null or not of type ServiceStateMBean.SERVICE_TYPE.public long getServiceId()
public long getBundleId()
public String[] getServiceInterfaces()
public List<PropertyData<? extends Object>> getProperties()
public long[] getUsingBundles()
Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.