public abstract class AbstractApplicationMonoSandbox extends Object implements Application
Constructor and Description |
---|
AbstractApplicationMonoSandbox(AbstractApplicationManagerMonoSandbox applicationManager)
Creates an application without sandboxing.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
createEntryPoint()
Creates the entry point associated with the application.
|
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.
|
protected abstract void |
startEntryPoint()
Starts the entry point associated with the application.
|
void |
stop()
Causes this application to stop.
|
void |
stop(IProgressMonitor monitor)
Causes this application to stop.
|
protected abstract void |
stopEntryPoint()
Stops the entry point associated with the application.
|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIdentifier, getVersion
public AbstractApplicationMonoSandbox(AbstractApplicationManagerMonoSandbox applicationManager)
applicationManager
- the application manager instance.protected abstract void createEntryPoint()
The reference to the entry point must be kept to be started and stopped later.
public boolean isStarted()
Application
isStarted
in interface Application
true
if the application is started, false
otherwise.public void start() throws IllegalStateException, SecurityException, ApplicationOperationException
Application
start
in interface Application
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.Application.isStarted()
public void start(IProgressMonitor monitor) throws IllegalStateException, SecurityException, ApplicationOperationException
Application
start
in interface Application
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.Application.isStarted()
protected abstract void startEntryPoint()
public void stop() throws IllegalStateException, SecurityException, ApplicationOperationException
Application
stop
in interface Application
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.Application.isStarted()
public void stop(IProgressMonitor monitor) throws IllegalStateException, SecurityException, ApplicationOperationException
Application
stop
in interface Application
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.Application.isStarted()
protected abstract void stopEntryPoint()