public interface Application
Two applications are equals if and only if they have the same identifier.
Modifier and Type | Method and Description |
---|---|
String |
getIdentifier()
Gets the application unique identifier.
|
String |
getVersion()
Gets the application version.
|
boolean |
isStarted()
Gets whether the application is started or not.
|
void |
start()
Causes this application to start.
|
void |
start(IProgressMonitor monitor)
Causes this application to start.
|
void |
stop()
Causes this application to stop.
|
void |
stop(IProgressMonitor monitor)
Causes this application to stop.
|
String getIdentifier()
The identifier remains the same even between different application version.
This identifier is a unique identifier in the application ecosystem (for example an application store) and may not be the same as the one in the application MANIFEST.MF.
String getVersion()
This version depends on the application ecosystem (for example an application store) and may not be the same as the one in the application MANIFEST.MF.
boolean isStarted()
true
if the application is started, false
otherwise.void start() throws IllegalStateException, SecurityException, ApplicationOperationException
IllegalStateException
- if the application state is already started.SecurityException
- if a security manager exits and if the caller does not have the appropriate permissions.ApplicationOperationException
- if any unexpected errors occur while starting this application.isStarted()
void start(IProgressMonitor monitor) throws IllegalStateException, SecurityException, ApplicationOperationException
monitor
- the progress monitor to use for reporting progress to the user. It is the caller's responsibility to
call done() on the given monitor.IllegalStateException
- if the application state is already started.SecurityException
- if a security manager exits and if the caller does not have the appropriate permissions.ApplicationOperationException
- if any unexpected errors occur while starting this application.isStarted()
void stop() throws IllegalStateException, SecurityException, ApplicationOperationException
IllegalStateException
- if the application is not started.SecurityException
- if a security manager exits and if the caller does not have the appropriate permissions.ApplicationOperationException
- if any unexpected errors occur while stopping this application.isStarted()
void stop(IProgressMonitor monitor) throws IllegalStateException, SecurityException, ApplicationOperationException
monitor
- the progress monitor to use for reporting progress to the user. It is the caller's responsibility to
call done() on the given monitor.IllegalStateException
- if the application is not started.SecurityException
- if a security manager exits and if the caller does not have the appropriate permissions.ApplicationOperationException
- if any unexpected errors occur while stopping this application.isStarted()