public class ServiceEventData extends Object
ServiceEventData represents ServiceEvent Type @see ServiceStateMBean.SERVICE_EVENT_TYPE.
It is a codec for the CompositeData representing an OSGi ServiceEvent.
| Constructor and Description |
|---|
ServiceEventData(org.osgi.framework.ServiceEvent serviceEvent) |
| Modifier and Type | Method and Description |
|---|---|
static ServiceEventData |
from(CompositeData compositeData)
Returns a
ServiceEventData representation of the given compositeData |
long |
getBundleId() |
String |
getBundleLocation() |
String |
getBundleSymbolicName() |
int |
getEventType() |
long |
getServiceId() |
String[] |
getServiceInterfaces() |
CompositeData |
toCompositeData()
Returns CompositeData representing a ServiceEvent typed by
ServiceStateMBean.SERVICE_EVENT_TYPE. |
public ServiceEventData(org.osgi.framework.ServiceEvent serviceEvent)
public CompositeData toCompositeData()
ServiceStateMBean.SERVICE_EVENT_TYPE.public static ServiceEventData from(CompositeData compositeData) throws IllegalArgumentException
ServiceEventData representation of the given compositeDatacompositeData - IllegalArgumentException - if the compositeData is null or incorrect typepublic long getServiceId()
public String[] getServiceInterfaces()
public long getBundleId()
public String getBundleLocation()
public String getBundleSymbolicName()
public int getEventType()
Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.