Class EndpointEvent
- java.lang.Object
-
- org.osgi.service.remoteserviceadmin.EndpointEvent
-
public class EndpointEvent extends Object
An Endpoint Event.EndpointEventobjects are delivered to all registeredEndpointEventListenerservices where theEndpointDescriptionproperties match one of the filters specified in theEndpointEventListener.ENDPOINT_LISTENER_SCOPEregistration 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:
EndpointEventListener
-
-
Field Summary
Fields Modifier and Type Field Description static intADDEDAn endpoint has been added.static intMODIFIEDThe properties of an endpoint have been modified.static intMODIFIED_ENDMATCHThe properties of an endpoint have been modified and the new properties no longer match the listener's filter.static intREMOVEDAn endpoint has been removed.
-
Constructor Summary
Constructors Constructor Description EndpointEvent(int type, EndpointDescription endpoint)Constructs aEndpointEventobject from the given arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EndpointDescriptiongetEndpoint()Return the endpoint associated with this event.intgetType()Return the type of this event.
-
-
-
Field Detail
-
ADDED
public static final int ADDED
An endpoint has been added. ThisEndpointEventtype indicates that a new endpoint has been added. The endpoint is represented by the associatedEndpointDescriptionobject.- See Also:
- Constant Field Values
-
REMOVED
public static final int REMOVED
An endpoint has been removed. ThisEndpointEventtype indicates that an endpoint has been removed. The endpoint is represented by the associatedEndpointDescriptionobject.- See Also:
- Constant Field Values
-
MODIFIED
public static final int MODIFIED
The properties of an endpoint have been modified. ThisEndpointEventtype indicates that the properties of an existing endpoint have been modified. The endpoint is represented by the associatedEndpointDescriptionobject and its properties can be obtained viaEndpointDescription.getProperties(). The endpoint properties still match the filters as specified in theEndpointEventListener.ENDPOINT_LISTENER_SCOPEfilter.- See Also:
- Constant Field Values
-
MODIFIED_ENDMATCH
public static final int MODIFIED_ENDMATCH
The properties of an endpoint have been modified and the new properties no longer match the listener's filter. ThisEndpointEventtype indicates that the properties of an existing endpoint have been modified and no longer match the filter. The endpoint is represented by the associatedEndpointDescriptionobject and its properties can be obtained viaEndpointDescription.getProperties(). As a consequence of the modification the filters as specified in theEndpointEventListener.ENDPOINT_LISTENER_SCOPEdo not match any more.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EndpointEvent
public EndpointEvent(int type, EndpointDescription endpoint)Constructs aEndpointEventobject from the given arguments.- Parameters:
type- The event type. SeegetType().endpoint- The endpoint associated with the event.
-
-
Method Detail
-
getEndpoint
public EndpointDescription 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.
-
-