public class BundleEventData
extends java.lang.Object
BundleEventData represents BundleEvent Type @see BundleStateMBean.BUNDLE_EVENT_TYPE
. It is a codec
for the CompositeData
representing an OSGi BundleEvent.
Constructor and Description |
---|
BundleEventData(BundleEvent bundleEvent) |
Modifier and Type | Method and Description |
---|---|
static BundleEventData |
from(javax.management.openmbean.CompositeData compositeData)
Returns a
BundleEventData representation of the given compositeData |
long |
getBundleId() |
java.lang.String |
getBundleSymbolicName() |
int |
getEventType() |
java.lang.String |
getLocation() |
javax.management.openmbean.CompositeData |
toCompositeData()
Returns CompositeData representing a BundleEvent typed by
BundleStateMBean.BUNDLE_EVENT_TYPE |
public javax.management.openmbean.CompositeData toCompositeData()
BundleStateMBean.BUNDLE_EVENT_TYPE
public static BundleEventData from(javax.management.openmbean.CompositeData compositeData) throws java.lang.IllegalArgumentException
BundleEventData
representation of the given compositeDatacompositeData
- java.lang.IllegalArgumentException
- if the compositeData is null or incorrect typepublic long getBundleId()
public java.lang.String getLocation()
public java.lang.String getBundleSymbolicName()
public int getEventType()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"