Class RemoteServiceAdminEvent
java.lang.Object
org.osgi.service.remoteserviceadmin.RemoteServiceAdminEvent
Provides the event information for a Remote Service Admin event.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Throwablestatic final intA fatal exporting error occurred.static final intAdd an export registration.static final intRemove an export registration.static final intUpdate an export registration.static final intA problematic situation occurred, the export is still active.private final ExportReferencestatic final intA fatal importing error occurred.static final intAdd an import registration.static final intRemove an import registration.static final intUpdate an import registration.static final intA problematic situation occurred, the import is still active.private final ImportReferenceprivate final org.osgi.framework.Bundleprivate final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionRemoteServiceAdminEvent(int type, org.osgi.framework.Bundle source, ExportReference exportReference, Throwable exception) Create a Remote Service Admin Event for an export notification.RemoteServiceAdminEvent(int type, org.osgi.framework.Bundle source, ImportReference importReference, Throwable exception) Create a Remote Service Admin Event for an import notification.privateRemoteServiceAdminEvent(int type, org.osgi.framework.Bundle source, ImportReference importReference, ExportReference exportReference, Throwable exception) Private constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturn the exception for this event.Return the Export Reference for this event.Return the Import Reference for this event.org.osgi.framework.BundleReturn the bundle source of this event.intgetType()Return the type of this event.
-
Field Details
-
IMPORT_REGISTRATION
public static final int IMPORT_REGISTRATIONAdd an import registration. The Remote Service Admin will send this event when it imports a service. When theRemoteServiceAdminListenerservice is registered, the Remote Service Admin must notify the listener of all existing Import Registrations.- See Also:
-
EXPORT_REGISTRATION
public static final int EXPORT_REGISTRATIONAdd an export registration. The Remote Service Admin will send this event when it exports a service. When theRemoteServiceAdminListenerservice is registered, the Remote Service Admin must notify the listener of all existing Export Registrations.- See Also:
-
EXPORT_UNREGISTRATION
public static final int EXPORT_UNREGISTRATIONRemove an export registration. The Remote Service Admin will send this event when it removes the export of a service.- See Also:
-
IMPORT_UNREGISTRATION
public static final int IMPORT_UNREGISTRATIONRemove an import registration. The Remote Service Admin will send this event when it removes the import of a service.- See Also:
-
IMPORT_ERROR
public static final int IMPORT_ERRORA fatal importing error occurred. The Import Registration has been closed.- See Also:
-
EXPORT_ERROR
public static final int EXPORT_ERRORA fatal exporting error occurred. The Export Registration has been closed.- See Also:
-
EXPORT_WARNING
public static final int EXPORT_WARNINGA problematic situation occurred, the export is still active.- See Also:
-
IMPORT_WARNING
public static final int IMPORT_WARNINGA problematic situation occurred, the import is still active.- See Also:
-
IMPORT_UPDATE
public static final int IMPORT_UPDATEUpdate an import registration. The Remote Service Admin will send this event when it updates a service.- Since:
- 1.1
- See Also:
-
EXPORT_UPDATE
public static final int EXPORT_UPDATEUpdate an export registration. The Remote Service Admin will send this event when it exports a service.- Since:
- 1.1
- See Also:
-
importReference
-
exportReference
-
exception
-
type
private final int type -
source
private final org.osgi.framework.Bundle source
-
-
Constructor Details
-
RemoteServiceAdminEvent
private RemoteServiceAdminEvent(int type, org.osgi.framework.Bundle source, ImportReference importReference, ExportReference exportReference, Throwable exception) Private constructor.- Parameters:
type- The event typesource- The source bundle, must not benull.importReference- The importReference, can benull.exportReference- The exportReference, can benull.exception- Any exceptions encountered, can benull
-
RemoteServiceAdminEvent
public RemoteServiceAdminEvent(int type, org.osgi.framework.Bundle source, ExportReference exportReference, Throwable exception) Create a Remote Service Admin Event for an export notification.- Parameters:
type- The event type.source- The source bundle, must not benull.exportReference- The exportReference, can not benull.exception- Any exceptions encountered, can benull.
-
RemoteServiceAdminEvent
public RemoteServiceAdminEvent(int type, org.osgi.framework.Bundle source, ImportReference importReference, Throwable exception) Create a Remote Service Admin Event for an import notification.- Parameters:
type- The event type.source- The source bundle, must not benull.importReference- The importReference, can not benull.exception- Any exceptions encountered, can benull.
-
-
Method Details
-
getImportReference
Return the Import Reference for this event.- Returns:
- The Import Reference or
null.
-
getExportReference
Return the Export Reference for this event.- Returns:
- The Export Reference or
null.
-
getException
Return the exception for this event.- Returns:
- The exception or
null.
-
getType
public int getType()Return the type of this event.- Returns:
- The type of this event.
-
getSource
public org.osgi.framework.Bundle getSource()Return the bundle source of this event.- Returns:
- The bundle source of this event.
-