- All Implemented Interfaces:
public class ApplicationServiceEvent
- extends ServiceEvent
An event from the Framework describing a service lifecycle change.
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
A type code is used to identify the event type for future
extendability. The available type codes are defined in
OSGi Alliance reserves the right to extend the set of types.
- See Also:
|Fields inherited from class java.util.EventObject
This method returns the service object of this service bound to the listener
|Methods inherited from class java.util.EventObject
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ApplicationServiceEvent(int type,
- Creates a new application service event object.
type - The event type. Available type codes are defines in
reference - A
ServiceReference object to the service
that had a lifecycle change. This reference will be used as the
EventObject baseclass, therefore, it must not be
serviceObject - The service object bound to this application instance. It can
null if this application is not bound to this service yet.
java.lang.IllegalArgumentException - if the specified
reference is null.
public java.lang.Object getServiceObject()
- This method returns the service object of this service bound to the listener
application instance. A service object becomes bound to the application when it
first obtains a service object reference to that service by calling the
methods. If the application is not bound to the service yet, this method returns
- the service object bound to the listener application or
if it isn't bound to this service yet.
Copyright © OSGi Alliance (2000, 2010). All Rights Reserved. Licensed under the OSGi Specification License, Version 1.0