public class ServiceData
extends java.lang.Object
ServiceData represents Service Type @see ServiceStateMBean.SERVICE_TYPE. It is a codec for the
CompositeData representing an OSGi ServiceReference.
| Constructor and Description |
|---|
ServiceData(<any> serviceReference) |
| Modifier and Type | Method and Description |
|---|---|
static ServiceData |
from(javax.management.openmbean.CompositeData compositeData)
Constructs a
ServiceData object from the given CompositeData |
long |
getBundleId() |
java.util.List<PropertyData<? extends java.lang.Object>> |
getProperties() |
long |
getServiceId() |
java.lang.String[] |
getServiceInterfaces() |
long[] |
getUsingBundles() |
javax.management.openmbean.CompositeData |
toCompositeData()
Returns CompositeData representing a ServiceReference typed by
ServiceStateMBean.SERVICE_TYPE. |
javax.management.openmbean.CompositeData |
toCompositeData(java.util.Collection<java.lang.String> itemNames) |
public ServiceData(<any> serviceReference)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic javax.management.openmbean.CompositeData toCompositeData()
ServiceStateMBean.SERVICE_TYPE.public javax.management.openmbean.CompositeData toCompositeData(java.util.Collection<java.lang.String> itemNames)
public static ServiceData from(javax.management.openmbean.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 java.lang.String[] getServiceInterfaces()
public java.util.List<PropertyData<? extends java.lang.Object>> getProperties()
public long[] getUsingBundles()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"