|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.osgi.service.remoteserviceadmin.EndpointEvent
public class EndpointEvent
An Endpoint Event.
EndpointEvent
objects are delivered to all registered
EndpointEventListener
services where the EndpointDescription
properties match one of the filters specified in the
EndpointEventListener.ENDPOINT_LISTENER_SCOPE
registration properties
of the Endpoint Event Listener.
A type code is used to identify the type of event. The following event types
are defined:
Additional event types may be defined in the future.
EndpointEventListener
Field Summary | |
---|---|
static int |
ADDED
An endpoint has been added. |
static int |
MODIFIED
The properties of an endpoint have been modified. |
static int |
MODIFIED_ENDMATCH
The properties of an endpoint have been modified and the new properties no longer match the listener's filter. |
static int |
REMOVED
An endpoint has been removed. |
Constructor Summary | |
---|---|
EndpointEvent(int type,
EndpointDescription endpoint)
Constructs a EndpointEvent object from the given arguments. |
Method Summary | |
---|---|
EndpointDescription |
getEndpoint()
Return the endpoint associated with this event. |
int |
getType()
Return the type of this event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ADDED
EndpointEvent
type indicates that a new endpoint has been
added. The endpoint is represented by the associated
EndpointDescription
object.
public static final int REMOVED
EndpointEvent
type indicates that an endpoint has been
removed. The endpoint is represented by the associated
EndpointDescription
object.
public static final int MODIFIED
EndpointEvent
type indicates that the properties of an
existing endpoint have been modified. The endpoint is represented by the
associated EndpointDescription
object and its properties can be
obtained via EndpointDescription.getProperties()
. The endpoint
properties still match the filters as specified in the
EndpointEventListener.ENDPOINT_LISTENER_SCOPE
filter.
public static final int MODIFIED_ENDMATCH
EndpointEvent
type indicates that the properties of an
existing endpoint have been modified and no longer match the filter. The
endpoint is represented by the associated EndpointDescription
object and its properties can be obtained via
EndpointDescription.getProperties()
. As a consequence of the
modification the filters as specified in the
EndpointEventListener.ENDPOINT_LISTENER_SCOPE
do not match any
more.
Constructor Detail |
---|
public EndpointEvent(int type, EndpointDescription endpoint)
EndpointEvent
object from the given arguments.
type
- The event type. See getType()
.endpoint
- The endpoint associated with the event.Method Detail |
---|
public EndpointDescription getEndpoint()
public int getType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |