public class PackageData
extends java.lang.Object
PackageDatarepresents PackageType @see PackageStateMBean.PACKAGE_TYPE
.
It is a codec for the composite data representing an OSGi ExportedPackage.
Constructor and Description |
---|
PackageData(ExportedPackage exportedPackage)
Constructs new PackageData with provided ExportedPackage.
|
PackageData(long[] exportingBundles,
long[] importingBundles,
java.lang.String name,
boolean removalPending,
java.lang.String version)
Constructs new PackageData.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
static PackageData |
from(javax.management.openmbean.CompositeData data)
Static factory method to create PackageData from CompositeData object.
|
long[] |
getExportingBundles() |
long[] |
getImportingBundles() |
java.lang.String |
getName() |
java.lang.String |
getVersion() |
int |
hashCode() |
boolean |
isRemovalPending() |
static javax.management.openmbean.TabularData |
tableFrom(java.util.Set<PackageData> packages)
Creates
TabularData for set of PackageData's. |
static long[] |
toBundleIds(Bundle[] bundles)
Converts array of bundles to array of bundle id's.
|
javax.management.openmbean.CompositeData |
toCompositeData()
Translates PackageData to CompositeData represented by
compositeType
PackageStateMBean.PACKAGE_TYPE . |
public PackageData(ExportedPackage exportedPackage)
exportedPackage
- @see ExportedPackage
.public PackageData(long[] exportingBundles, long[] importingBundles, java.lang.String name, boolean removalPending, java.lang.String version)
exportingBundles
- the bundle the package belongs to.importingBundles
- the importing bundles of the package.name
- the package name.removalPending
- whether the package is pending removal.version
- package version.public javax.management.openmbean.CompositeData toCompositeData()
PackageStateMBean.PACKAGE_TYPE
.public static PackageData from(javax.management.openmbean.CompositeData data)
data
- CompositeData
instance.public static javax.management.openmbean.TabularData tableFrom(java.util.Set<PackageData> packages)
TabularData
for set of PackageData's.packages
- set of PackageData'sTabularData
instance.public static long[] toBundleIds(Bundle[] bundles)
bundles
- array of Bundle's.public long[] getExportingBundles()
public long[] getImportingBundles()
public java.lang.String getName()
public boolean isRemovalPending()
public java.lang.String getVersion()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"