public class BundleEventData extends 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(org.osgi.framework.BundleEvent bundleEvent) |
| Modifier and Type | Method and Description |
|---|---|
static BundleEventData |
from(CompositeData compositeData)
Returns a
BundleEventData representation of the given compositeData |
long |
getBundleId() |
String |
getBundleSymbolicName() |
int |
getEventType() |
String |
getLocation() |
CompositeData |
toCompositeData()
Returns CompositeData representing a BundleEvent typed by
BundleStateMBean.BUNDLE_EVENT_TYPE |
public BundleEventData(org.osgi.framework.BundleEvent bundleEvent)
public CompositeData toCompositeData()
BundleStateMBean.BUNDLE_EVENT_TYPEpublic static BundleEventData from(CompositeData compositeData) throws IllegalArgumentException
BundleEventData representation of the given compositeDatacompositeData - IllegalArgumentException - if the compositeData is null or incorrect typepublic long getBundleId()
public String getLocation()
public String getBundleSymbolicName()
public int getEventType()
Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.