Top Description Fields Constructors Methods
org.osgi.service.remoteserviceadmin

public Class EndpointEvent

extends Object
Class Inheritance

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
EndpointEventListener

Field Summary

Modifier and TypeField and Description
public static final int
ADDED

An endpoint has been added.

private final EndpointDescription
endpoint

Reference to the associated endpoint description.

public static final int
MODIFIED

The properties of an endpoint have been modified.

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.

public static final int
REMOVED

An endpoint has been removed.

private final int
type

Type of the event.

Constructor Summary

AccessConstructor and Description
public
EndpointEvent(int
The event type. See getType().
type
,
EndpointDescription
The endpoint associated with the event.
endpoint
)

Constructs a EndpointEvent object from the given arguments.

Method Summary

Modifier and TypeMethod and Description
public EndpointDescription

Returns:

The endpoint associated with the event.
getEndpoint
()

Return the endpoint associated with this event.

public int

Returns:

The type of this event.
getType
()

Return the type of this event.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ADDEDback to summary
public static final int ADDED

An endpoint has been added.

This EndpointEvent type indicates that a new endpoint has been added. The endpoint is represented by the associated EndpointDescription object.

endpointback to summary
private final EndpointDescription endpoint

Reference to the associated endpoint description.

MODIFIEDback to summary
public static final int MODIFIED

The properties of an endpoint have been modified.

This 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.

MODIFIED_ENDMATCHback to summary
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.

This 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.

REMOVEDback to summary
public static final int REMOVED

An endpoint has been removed.

This EndpointEvent type indicates that an endpoint has been removed. The endpoint is represented by the associated EndpointDescription object.

typeback to summary
private final int type

Type of the event.

Constructor Detail

EndpointEventback to summary
public EndpointEvent(int type, EndpointDescription endpoint)

Constructs a EndpointEvent object from the given arguments.

Parameters
type:int

The event type. See getType().

endpoint:EndpointDescription

The endpoint associated with the event.

Method Detail

getEndpointback to summary
public EndpointDescription getEndpoint()

Return the endpoint associated with this event.

Returns:EndpointDescription

The endpoint associated with the event.

getTypeback to summary
public int getType()

Return the type of this event.

The type values are:

Returns:int

The type of this event.