public class RemoteServiceAdminEvent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.Throwable |
exception |
static int |
EXPORT_ERROR
A fatal exporting error occurred.
|
static int |
EXPORT_REGISTRATION
Add an export registration.
|
static int |
EXPORT_UNREGISTRATION
Remove an export registration.
|
static int |
EXPORT_UPDATE
Update an export registration.
|
static int |
EXPORT_WARNING
A problematic situation occurred, the export is still active.
|
private ExportReference |
exportReference |
static int |
IMPORT_ERROR
A fatal importing error occurred.
|
static int |
IMPORT_REGISTRATION
Add an import registration.
|
static int |
IMPORT_UNREGISTRATION
Remove an import registration.
|
static int |
IMPORT_UPDATE
Update an import registration.
|
static int |
IMPORT_WARNING
A problematic situation occurred, the import is still active.
|
private ImportReference |
importReference |
private org.osgi.framework.Bundle |
source |
private int |
type |
Modifier | Constructor and Description |
---|---|
|
RemoteServiceAdminEvent(int type,
org.osgi.framework.Bundle source,
ExportReference exportReference,
java.lang.Throwable exception)
Create a Remote Service Admin Event for an export notification.
|
private |
RemoteServiceAdminEvent(int type,
org.osgi.framework.Bundle source,
ImportReference importReference,
ExportReference exportReference,
java.lang.Throwable exception)
Private constructor.
|
|
RemoteServiceAdminEvent(int type,
org.osgi.framework.Bundle source,
ImportReference importReference,
java.lang.Throwable exception)
Create a Remote Service Admin Event for an import notification.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getException()
Return the exception for this event.
|
ExportReference |
getExportReference()
Return the Export Reference for this event.
|
ImportReference |
getImportReference()
Return the Import Reference for this event.
|
org.osgi.framework.Bundle |
getSource()
Return the bundle source of this event.
|
int |
getType()
Return the type of this event.
|
public static final int IMPORT_REGISTRATION
RemoteServiceAdminListener
service is registered, the Remote Service Admin must notify the listener
of all existing Import Registrations.public static final int EXPORT_REGISTRATION
RemoteServiceAdminListener
service is registered, the Remote Service Admin must notify the listener
of all existing Export Registrations.public static final int EXPORT_UNREGISTRATION
public static final int IMPORT_UNREGISTRATION
public static final int IMPORT_ERROR
public static final int EXPORT_ERROR
public static final int EXPORT_WARNING
public static final int IMPORT_WARNING
public static final int IMPORT_UPDATE
public static final int EXPORT_UPDATE
private final ImportReference importReference
private final ExportReference exportReference
private final java.lang.Throwable exception
private final int type
private final org.osgi.framework.Bundle source
private RemoteServiceAdminEvent(int type, org.osgi.framework.Bundle source, ImportReference importReference, ExportReference exportReference, java.lang.Throwable exception)
type
- The event typesource
- The source bundle, must not be null
.importReference
- The importReference, can be null
.exportReference
- The exportReference, can be null
.exception
- Any exceptions encountered, can be null
public RemoteServiceAdminEvent(int type, org.osgi.framework.Bundle source, ExportReference exportReference, java.lang.Throwable exception)
type
- The event type.source
- The source bundle, must not be null
.exportReference
- The exportReference, can not be null
.exception
- Any exceptions encountered, can be null
.public RemoteServiceAdminEvent(int type, org.osgi.framework.Bundle source, ImportReference importReference, java.lang.Throwable exception)
type
- The event type.source
- The source bundle, must not be null
.importReference
- The importReference, can not be null
.exception
- Any exceptions encountered, can be null
.public ImportReference getImportReference()
null
.public ExportReference getExportReference()
null
.public java.lang.Throwable getException()
null
.public int getType()
public org.osgi.framework.Bundle getSource()