org.apache.aries.jmx.codec
Class BundleData

java.lang.Object
  extended by org.apache.aries.jmx.codec.BundleData

public class BundleData
extends Object

BundleData represents BundleData Type @see BundleStateMBean.BUNDLE_TYPE. It is a codec for the CompositeData representing an OSGi BundleData.

Version:
$Rev: 897313 $ $Date: 2010-01-08 20:07:12 +0000 (Fri, 08 Jan 2010) $

Nested Class Summary
static class BundleData.Header
           
 
Constructor Summary
BundleData(org.osgi.framework.BundleContext localBundleContext, org.osgi.framework.Bundle bundle, org.osgi.service.packageadmin.PackageAdmin packageAdmin, org.osgi.service.startlevel.StartLevel startLevel)
           
 
Method Summary
static BundleData from(CompositeData compositeData)
          Constructs a BundleData object from the given CompositeData
 int getBundleStartLevel()
           
 String[] getExportedPackages()
           
 long[] getFragments()
           
 List<BundleData.Header> getHeaders()
           
 long[] getHosts()
           
 long getIdentifier()
           
 String[] getImportedPackages()
           
 long getLastModified()
           
 String getLocation()
           
 long[] getRegisteredServices()
           
 long[] getRequiredBundles()
           
 long[] getRequiringBundles()
           
 long[] getServicesInUse()
           
 String getState()
           
 String getSymbolicName()
           
 String getVersion()
           
 boolean isFragment()
           
 boolean isPersistentlyStarted()
           
 boolean isRemovalPending()
           
 boolean isRequired()
           
 CompositeData toCompositeData()
          Returns CompositeData representing a BundleData complete state typed by BundleStateMBean.BUNDLE_TYPE
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundleData

public BundleData(org.osgi.framework.BundleContext localBundleContext,
                  org.osgi.framework.Bundle bundle,
                  org.osgi.service.packageadmin.PackageAdmin packageAdmin,
                  org.osgi.service.startlevel.StartLevel startLevel)
Method Detail

toCompositeData

public CompositeData toCompositeData()
Returns CompositeData representing a BundleData complete state typed by BundleStateMBean.BUNDLE_TYPE

Returns:

from

public static BundleData from(CompositeData compositeData)
                       throws IllegalArgumentException
Constructs a BundleData object from the given CompositeData

Parameters:
compositeData -
Returns:
Throws:
IlleglArgumentException - if compositeData is null or not of type BundleStateMBean.BUNDLE_TYPE
IllegalArgumentException

getExportedPackages

public String[] getExportedPackages()

isFragment

public boolean isFragment()

getFragments

public long[] getFragments()

getHeaders

public List<BundleData.Header> getHeaders()

getHosts

public long[] getHosts()

getIdentifier

public long getIdentifier()

getImportedPackages

public String[] getImportedPackages()

getLastModified

public long getLastModified()

getLocation

public String getLocation()

isPersistentlyStarted

public boolean isPersistentlyStarted()

getRegisteredServices

public long[] getRegisteredServices()

isRemovalPending

public boolean isRemovalPending()

isRequired

public boolean isRequired()

getRequiredBundles

public long[] getRequiredBundles()

getRequiringBundles

public long[] getRequiringBundles()

getServicesInUse

public long[] getServicesInUse()

getBundleStartLevel

public int getBundleStartLevel()

getState

public String getState()

getSymbolicName

public String getSymbolicName()

getVersion

public String getVersion()


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.