public class BundleData
extends java.lang.Object
BundleData represents BundleData Type @see BundleStateMBean.BUNDLE_TYPE
. It is a codec for the
CompositeData
representing an OSGi BundleData.
Modifier and Type | Class and Description |
---|---|
static class |
BundleData.Header |
Constructor and Description |
---|
BundleData(BundleContext localBundleContext,
Bundle bundle,
PackageAdmin packageAdmin,
StartLevel startLevel) |
Modifier and Type | Method and Description |
---|---|
static BundleData |
from(javax.management.openmbean.CompositeData compositeData)
Constructs a
BundleData object from the given CompositeData |
int |
getBundleStartLevel() |
java.lang.String[] |
getExportedPackages() |
long[] |
getFragments() |
java.util.List<BundleData.Header> |
getHeaders() |
long[] |
getHosts() |
long |
getIdentifier() |
java.lang.String[] |
getImportedPackages() |
long |
getLastModified() |
java.lang.String |
getLocation() |
long[] |
getRegisteredServices() |
long[] |
getRequiredBundles() |
long[] |
getRequiringBundles() |
long[] |
getServicesInUse() |
java.lang.String |
getState() |
java.lang.String |
getSymbolicName() |
java.lang.String |
getVersion() |
boolean |
isFragment() |
boolean |
isPersistentlyStarted() |
boolean |
isRemovalPending() |
boolean |
isRequired() |
javax.management.openmbean.CompositeData |
toCompositeData()
Returns CompositeData representing a BundleData complete state typed by
BundleStateMBean.BUNDLE_TYPE |
javax.management.openmbean.CompositeData |
toCompositeData(java.util.Collection<java.lang.String> itemNames) |
public BundleData(BundleContext localBundleContext, Bundle bundle, PackageAdmin packageAdmin, StartLevel startLevel)
public javax.management.openmbean.CompositeData toCompositeData()
BundleStateMBean.BUNDLE_TYPE
public javax.management.openmbean.CompositeData toCompositeData(java.util.Collection<java.lang.String> itemNames)
public static BundleData from(javax.management.openmbean.CompositeData compositeData) throws java.lang.IllegalArgumentException
BundleData
object from the given CompositeData
compositeData
- IlleglArgumentException
- if compositeData is null or not of type BundleStateMBean.BUNDLE_TYPE
java.lang.IllegalArgumentException
public java.lang.String[] getExportedPackages()
public boolean isFragment()
public long[] getFragments()
public java.util.List<BundleData.Header> getHeaders()
public long[] getHosts()
public long getIdentifier()
public java.lang.String[] getImportedPackages()
public long getLastModified()
public java.lang.String getLocation()
public boolean isPersistentlyStarted()
public long[] getRegisteredServices()
public boolean isRemovalPending()
public boolean isRequired()
public long[] getRequiredBundles()
public long[] getRequiringBundles()
public long[] getServicesInUse()
public int getBundleStartLevel()
public java.lang.String getState()
public java.lang.String getSymbolicName()
public java.lang.String getVersion()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"