org.apache.aries.jmx.codec
Class ServiceData
java.lang.Object
org.apache.aries.jmx.codec.ServiceData
public class ServiceData
- extends Object
ServiceData represents Service Type @see ServiceStateMBean.SERVICE_TYPE
. It is a codec for the
CompositeData
representing an OSGi ServiceReference
.
- Version:
- $Rev: 921523 $ $Date: 2010-03-10 19:29:59 +0000 (Wed, 10 Mar 2010) $
Constructor Summary |
ServiceData(org.osgi.framework.ServiceReference serviceReference)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceData
public ServiceData(org.osgi.framework.ServiceReference serviceReference)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
toCompositeData
public CompositeData toCompositeData()
- Returns CompositeData representing a ServiceReference typed by
ServiceStateMBean.SERVICE_TYPE
.
- Returns:
from
public static ServiceData from(CompositeData compositeData)
- Constructs a
ServiceData
object from the given CompositeData
- Parameters:
compositeData
-
- Returns:
-
- Throws:
IlleglArugmentException
- if compositeData is null or not of type ServiceStateMBean.SERVICE_TYPE
.
getServiceId
public long getServiceId()
getBundleId
public long getBundleId()
getServiceInterfaces
public String[] getServiceInterfaces()
getUsingBundles
public long[] getUsingBundles()
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.