org.apache.aries.jmx.codec
Class BundleEventData
java.lang.Object
org.apache.aries.jmx.codec.BundleEventData
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.
- Version:
- $Rev: 896239 $ $Date: 2010-01-05 22:02:23 +0000 (Tue, 05 Jan 2010) $
Constructor Summary |
BundleEventData(org.osgi.framework.BundleEvent bundleEvent)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BundleEventData
public BundleEventData(org.osgi.framework.BundleEvent bundleEvent)
toCompositeData
public CompositeData toCompositeData()
- Returns CompositeData representing a BundleEvent typed by
BundleStateMBean.BUNDLE_EVENT_TYPE
- Returns:
from
public static BundleEventData from(CompositeData compositeData)
throws IllegalArgumentException
- Returns a
BundleEventData
representation of the given compositeData
- Parameters:
compositeData
-
- Returns:
-
- Throws:
IllegalArgumentException
- if the compositeData is null or incorrect type
getBundleId
public long getBundleId()
getLocation
public String getLocation()
getBundleSymbolicName
public String getBundleSymbolicName()
getEventType
public int getEventType()
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.