org.apache.aries.jmx.codec
Class ServiceData

java.lang.Object
  extended by 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)
           
 
Method Summary
static ServiceData from(CompositeData compositeData)
          Constructs a ServiceData object from the given CompositeData
 long getBundleId()
           
 long getServiceId()
           
 String[] getServiceInterfaces()
           
 long[] getUsingBundles()
           
 CompositeData toCompositeData()
          Returns CompositeData representing a ServiceReference typed by ServiceStateMBean.SERVICE_TYPE.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceData

public ServiceData(org.osgi.framework.ServiceReference serviceReference)
            throws IllegalArgumentException
Throws:
IllegalArgumentException
Method Detail

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.