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

public Class RemoteServiceAdminEvent

extends Object
Class Inheritance
Imports
org.osgi.framework.Bundle

Provides the event information for a Remote Service Admin event.
Author
$Id: a2eb40665605a6955a0109d0eaf48773498eb027 $

Field Summary

Modifier and TypeField and Description
private final Throwable
public static final int
EXPORT_ERROR

A fatal exporting error occurred.

public static final int
EXPORT_REGISTRATION

Add an export registration.

public static final int
EXPORT_UNREGISTRATION

Remove an export registration.

public static final int
EXPORT_UPDATE

Update an export registration.

public static final int
EXPORT_WARNING

A problematic situation occurred, the export is still active.

private final ExportReference
public static final int
IMPORT_ERROR

A fatal importing error occurred.

public static final int
IMPORT_REGISTRATION

Add an import registration.

public static final int
IMPORT_UNREGISTRATION

Remove an import registration.

public static final int
IMPORT_UPDATE

Update an import registration.

public static final int
IMPORT_WARNING

A problematic situation occurred, the import is still active.

private final ImportReference
private final Bundle
private final int

Constructor Summary

AccessConstructor and Description
private
RemoteServiceAdminEvent(int
The event type
type
,
Bundle
The source bundle, must not be null.
source
,
ImportReference
The importReference, can be null.
importReference
,
ExportReference
The exportReference, can be null.
exportReference
,
Throwable
Any exceptions encountered, can be null
exception
)

Private constructor.

public
RemoteServiceAdminEvent(int
The event type.
type
,
Bundle
The source bundle, must not be null.
source
,
ExportReference
The exportReference, can not be null.
exportReference
,
Throwable
Any exceptions encountered, can be null.
exception
)

Create a Remote Service Admin Event for an export notification.

public
RemoteServiceAdminEvent(int
The event type.
type
,
Bundle
The source bundle, must not be null.
source
,
ImportReference
The importReference, can not be null.
importReference
,
Throwable
Any exceptions encountered, can be null.
exception
)

Create a Remote Service Admin Event for an import notification.

Method Summary

Modifier and TypeMethod and Description
public Throwable

Returns:

The exception or null.
getException
()

Return the exception for this event.

public ExportReference

Returns:

The Export Reference or null.
getExportReference
()

Return the Export Reference for this event.

public ImportReference

Returns:

The Import Reference or null.
getImportReference
()

Return the Import Reference for this event.

public Bundle

Returns:

The bundle source of this event.
getSource
()

Return the bundle source of 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

exceptionback to summary
private final Throwable exception
EXPORT_ERRORback to summary
public static final int EXPORT_ERROR

A fatal exporting error occurred. The Export Registration has been closed.

EXPORT_REGISTRATIONback to summary
public static final int EXPORT_REGISTRATION

Add an export registration. The Remote Service Admin will send this event when it exports a service. When the RemoteServiceAdminListener service is registered, the Remote Service Admin must notify the listener of all existing Export Registrations.

EXPORT_UNREGISTRATIONback to summary
public static final int EXPORT_UNREGISTRATION

Remove an export registration. The Remote Service Admin will send this event when it removes the export of a service.

EXPORT_UPDATEback to summary
public static final int EXPORT_UPDATE

Update an export registration. The Remote Service Admin will send this event when it exports a service.

Since
1.1
EXPORT_WARNINGback to summary
public static final int EXPORT_WARNING

A problematic situation occurred, the export is still active.

exportReferenceback to summary
private final ExportReference exportReference
IMPORT_ERRORback to summary
public static final int IMPORT_ERROR

A fatal importing error occurred. The Import Registration has been closed.

IMPORT_REGISTRATIONback to summary
public static final int IMPORT_REGISTRATION

Add an import registration. The Remote Service Admin will send this event when it imports a service. When the RemoteServiceAdminListener service is registered, the Remote Service Admin must notify the listener of all existing Import Registrations.

IMPORT_UNREGISTRATIONback to summary
public static final int IMPORT_UNREGISTRATION

Remove an import registration. The Remote Service Admin will send this event when it removes the import of a service.

IMPORT_UPDATEback to summary
public static final int IMPORT_UPDATE

Update an import registration. The Remote Service Admin will send this event when it updates a service.

Since
1.1
IMPORT_WARNINGback to summary
public static final int IMPORT_WARNING

A problematic situation occurred, the import is still active.

importReferenceback to summary
private final ImportReference importReference
sourceback to summary
private final Bundle source
typeback to summary
private final int type

Constructor Detail

RemoteServiceAdminEventback to summary
private RemoteServiceAdminEvent(int type, Bundle source, ImportReference importReference, ExportReference exportReference, Throwable exception)

Private constructor.

Parameters
type:int

The event type

source:Bundle

The source bundle, must not be null.

importReference:ImportReference

The importReference, can be null.

exportReference:ExportReference

The exportReference, can be null.

exception:Throwable

Any exceptions encountered, can be null

RemoteServiceAdminEventback to summary
public RemoteServiceAdminEvent(int type, Bundle source, ExportReference exportReference, Throwable exception)

Create a Remote Service Admin Event for an export notification.

Parameters
type:int

The event type.

source:Bundle

The source bundle, must not be null.

exportReference:ExportReference

The exportReference, can not be null.

exception:Throwable

Any exceptions encountered, can be null.

RemoteServiceAdminEventback to summary
public RemoteServiceAdminEvent(int type, Bundle source, ImportReference importReference, Throwable exception)

Create a Remote Service Admin Event for an import notification.

Parameters
type:int

The event type.

source:Bundle

The source bundle, must not be null.

importReference:ImportReference

The importReference, can not be null.

exception:Throwable

Any exceptions encountered, can be null.

Method Detail

getExceptionback to summary
public Throwable getException()

Return the exception for this event.

Returns:Throwable

The exception or null.

getExportReferenceback to summary
public ExportReference getExportReference()

Return the Export Reference for this event.

Returns:ExportReference

The Export Reference or null.

getImportReferenceback to summary
public ImportReference getImportReference()

Return the Import Reference for this event.

Returns:ImportReference

The Import Reference or null.

getSourceback to summary
public Bundle getSource()

Return the bundle source of this event.

Returns:Bundle

The bundle source of this event.

getTypeback to summary
public int getType()

Return the type of this event.

Returns:int

The type of this event.