Class EndpointEvent
java.lang.Object
org.osgi.service.remoteserviceadmin.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.
- Since:
- 1.1
- See Also:
- "Immutable"
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
An endpoint has been added.static final int
The properties of an endpoint have been modified.static final int
The properties of an endpoint have been modified and the new properties no longer match the listener's filter.static final int
An endpoint has been removed. -
Constructor Summary
ConstructorDescriptionEndpointEvent
(int type, EndpointDescription endpoint) Constructs aEndpointEvent
object from the given arguments. -
Method Summary
Modifier and TypeMethodDescriptionReturn the endpoint associated with this event.int
getType()
Return the type of this event.
-
Field Details
-
ADDED
public static final int ADDEDAn endpoint has been added. ThisEndpointEvent
type indicates that a new endpoint has been added. The endpoint is represented by the associatedEndpointDescription
object.- See Also:
-
REMOVED
public static final int REMOVEDAn endpoint has been removed. ThisEndpointEvent
type indicates that an endpoint has been removed. The endpoint is represented by the associatedEndpointDescription
object.- See Also:
-
MODIFIED
public static final int MODIFIEDThe properties of an endpoint have been modified. ThisEndpointEvent
type indicates that the properties of an existing endpoint have been modified. The endpoint is represented by the associatedEndpointDescription
object and its properties can be obtained viaEndpointDescription.getProperties()
. The endpoint properties still match the filters as specified in theEndpointEventListener.ENDPOINT_LISTENER_SCOPE
filter.- See Also:
-
MODIFIED_ENDMATCH
public static final int MODIFIED_ENDMATCHThe properties of an endpoint have been modified and the new properties no longer match the listener's filter. ThisEndpointEvent
type indicates that the properties of an existing endpoint have been modified and no longer match the filter. The endpoint is represented by the associatedEndpointDescription
object and its properties can be obtained viaEndpointDescription.getProperties()
. As a consequence of the modification the filters as specified in theEndpointEventListener.ENDPOINT_LISTENER_SCOPE
do not match any more.- See Also:
-
-
Constructor Details
-
EndpointEvent
Constructs aEndpointEvent
object from the given arguments.- Parameters:
type
- The event type. SeegetType()
.endpoint
- The endpoint associated with the event.
-
-
Method Details
-
getEndpoint
Return the endpoint associated with this event.- Returns:
- The endpoint associated with the event.
-
getType
public int getType()Return the type of this event. The type values are:- Returns:
- The type of this event.
-