public class ApplicationServiceEvent extends ServiceEvent
ApplicationServiceEvent objects are delivered to a
ApplicationServiceListener objects when a change occurs in this
service's lifecycle. The delivery of an
always triggered by a
ApplicationServiceEvent extends the content of
with the service object the event is referring to as applications has no
means to find the corresponding service object for a
ServiceReference. A type code is used to identify
the event type for future extendability. The available type codes are defined
OSGi Alliance reserves the right to extend the set of types.
MODIFIED, MODIFIED_ENDMATCH, REGISTERED, UNREGISTERING
|Constructor and Description|
Creates a new application service event object.
|Modifier and Type||Method and Description|
This method returns the service object of this service bound to the listener application instance.
public ApplicationServiceEvent(int type, ServiceReference reference, java.lang.Object serviceObject)
type- The event type. Available type codes are defines in
ServiceReferenceobject to the service that had a lifecycle change. This reference will be used as the
EventObjectbase class, therefore, it must not be null.
serviceObject- The service object bound to this application instance. It can be
nullif this application is not bound to this service yet.
java.lang.IllegalArgumentException- if the specified
public java.lang.Object getServiceObject()
locateServicesmethods. If the application is not bound to the service yet, this method returns
nullif it isn't bound to this service yet.
Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0