Class RemoteServiceAdminEvent
- java.lang.Object
- 
- org.osgi.service.remoteserviceadmin.RemoteServiceAdminEvent
 
- 
- Direct Known Subclasses:
- RemoteServiceAdmin.RemoteServiceAdminEvent
 
 public class RemoteServiceAdminEvent extends Object Provides the event information for a Remote Service Admin event.
- 
- 
Field SummaryFields Modifier and Type Field Description static intEXPORT_ERRORA fatal exporting error occurred.static intEXPORT_REGISTRATIONAdd an export registration.static intEXPORT_UNREGISTRATIONRemove an export registration.static intEXPORT_UPDATEUpdate an export registration.static intEXPORT_WARNINGA problematic situation occurred, the export is still active.static intIMPORT_ERRORA fatal importing error occurred.static intIMPORT_REGISTRATIONAdd an import registration.static intIMPORT_UNREGISTRATIONRemove an import registration.static intIMPORT_UPDATEUpdate an import registration.static intIMPORT_WARNINGA problematic situation occurred, the import is still active.
 - 
Constructor SummaryConstructors Constructor Description RemoteServiceAdminEvent(int type, Bundle source, ExportReference exportReference, Throwable exception)Create a Remote Service Admin Event for an export notification.RemoteServiceAdminEvent(int type, Bundle source, ImportReference importReference, Throwable exception)Create a Remote Service Admin Event for an import notification.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ThrowablegetException()Return the exception for this event.ExportReferencegetExportReference()Return the Export Reference for this event.ImportReferencegetImportReference()Return the Import Reference for this event.BundlegetSource()Return the bundle source of this event.intgetType()Return the type of this event.
 
- 
- 
- 
Field Detail- 
IMPORT_REGISTRATIONpublic static final int IMPORT_REGISTRATION Add 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:
- Constant Field Values
 
 - 
EXPORT_REGISTRATIONpublic static final int EXPORT_REGISTRATION Add 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:
- Constant Field Values
 
 - 
EXPORT_UNREGISTRATIONpublic 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.- See Also:
- Constant Field Values
 
 - 
IMPORT_UNREGISTRATIONpublic 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.- See Also:
- Constant Field Values
 
 - 
IMPORT_ERRORpublic static final int IMPORT_ERROR A fatal importing error occurred. The Import Registration has been closed.- See Also:
- Constant Field Values
 
 - 
EXPORT_ERRORpublic static final int EXPORT_ERROR A fatal exporting error occurred. The Export Registration has been closed.- See Also:
- Constant Field Values
 
 - 
EXPORT_WARNINGpublic static final int EXPORT_WARNING A problematic situation occurred, the export is still active.- See Also:
- Constant Field Values
 
 - 
IMPORT_WARNINGpublic static final int IMPORT_WARNING A problematic situation occurred, the import is still active.- See Also:
- Constant Field Values
 
 - 
IMPORT_UPDATEpublic 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
- See Also:
- Constant Field Values
 
 - 
EXPORT_UPDATEpublic 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
- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
RemoteServiceAdminEventpublic RemoteServiceAdminEvent(int type, 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 be- null.
- exportReference- The exportReference, can not be- null.
- exception- Any exceptions encountered, can be- null.
 
 - 
RemoteServiceAdminEventpublic RemoteServiceAdminEvent(int type, 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 be- null.
- importReference- The importReference, can not be- null.
- exception- Any exceptions encountered, can be- null.
 
 
- 
 - 
Method Detail- 
getImportReferencepublic ImportReference getImportReference() Return the Import Reference for this event.- Returns:
- The Import Reference or null.
 
 - 
getExportReferencepublic ExportReference getExportReference() Return the Export Reference for this event.- Returns:
- The Export Reference or null.
 
 - 
getExceptionpublic Throwable getException() Return the exception for this event.- Returns:
- The exception or null.
 
 - 
getTypepublic int getType() Return the type of this event.- Returns:
- The type of this event.
 
 - 
getSourcepublic Bundle getSource() Return the bundle source of this event.- Returns:
- The bundle source of this event.
 
 
- 
 
-