C
- the execution context typepublic abstract class AbstractApplication<C> extends Object implements org.eclipse.equinox.app.IApplication
Constructor and Description |
---|
AbstractApplication() |
Modifier and Type | Method and Description |
---|---|
protected abstract C |
createExecutionContext()
Create the application execution context.
|
protected void |
dispose(C executionContext)
Dispose the application execution context.
|
protected void |
processCommandLineArguments(String[] args,
C executionContext)
Process the command line arguments.
|
protected void |
processFlag(String arg,
C executionContext)
Process a single command line argument.
|
protected void |
processParameter(String param,
String value,
C executionContext)
Process a command line parameter
|
protected abstract Object |
run(C executionContext,
org.eclipse.equinox.app.IApplicationContext appContext)
Run the application.
|
Object |
run(String[] args,
org.eclipse.equinox.app.IApplicationContext appContext)
Run the application.
|
Object |
start(org.eclipse.equinox.app.IApplicationContext context) |
void |
stop() |
public Object start(org.eclipse.equinox.app.IApplicationContext context) throws Exception
start
in interface org.eclipse.equinox.app.IApplication
Exception
public Object run(String[] args, org.eclipse.equinox.app.IApplicationContext appContext) throws Exception
args
- the application argumentsappContext
- the application contextException
- if an unrecoverable error occurs processing the
arguments or running the applicationIApplication.start(IApplicationContext)
protected abstract Object run(C executionContext, org.eclipse.equinox.app.IApplicationContext appContext)
executionContext
- the execution context configured based on the
application argumentsappContext
- the application contextIApplication.start(IApplicationContext)
protected void processCommandLineArguments(String[] args, C executionContext) throws Exception
args
- the command line argumentsexecutionContext
- the execution context to configureException
- if an unrecoverable error occurs processing the command
lineprotected void processFlag(String arg, C executionContext)
arg
- the argumentexecutionContext
- the execution context to configureprotected void processParameter(String param, String value, C executionContext) throws Exception
param
- the parameter namevalue
- the parameter valueexecutionContext
- the execution context to configureException
- if an unrecoverable error occurs processing the
parameterprotected abstract C createExecutionContext()
public void stop()
stop
in interface org.eclipse.equinox.app.IApplication
protected void dispose(C executionContext)
executionContext
- the execution contextBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a