|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.base.application.control.ApplicationController
public class ApplicationController
ApplicationController
| Field Summary | |
|---|---|
protected Application |
application
The application |
| Constructor Summary | |
|---|---|
ApplicationController(String[] args)
Creates an ApplicationController object. |
|
| Method Summary | |
|---|---|
void |
cmdLineBadArgs(CmdLineEvent e)
|
void |
cmdLineHelpRequest(CmdLineEvent e)
CmdLineEvent listener. |
void |
cmdLineTrace(CmdLineEvent e)
CmdLineEvent listener. |
void |
cmdLineVersionRequest(CmdLineEvent e)
CmdLineEvent listener. |
void |
exceptionThrown(Exception e)
ExceptionEvent listener. |
void |
exit()
Terminates the currently running application using the applications exit code to exit. |
Application |
getApplication()
Returns the application object. |
CmdLineArgs |
getCmdLineArgs()
Returns the command line arguments as processed by the command line processor. |
String[] |
getRawArgs()
Returns the command line arguments as received from the VM's main. |
protected void |
handleExceptionEvent(Exception exception)
Handle an exception event by delegating it to the appropriate listener. |
void |
initLogging(String configName,
String logSource)
Initializes the logging system. |
void |
registerApplication(Application app)
Register an application with the controller. |
void |
registerManageable(Manageable manageable)
Register a manageable with the controller. |
void |
run()
Runs the controller. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Application application
| Constructor Detail |
|---|
public ApplicationController(String[] args)
ApplicationController object.
args - The command line arguments as obtained from the main()| Method Detail |
|---|
public void run()
args - The command line arguments as obtained from the mainpublic void registerApplication(Application app)
app - The applicationpublic void registerManageable(Manageable manageable)
app - The applicationpublic void cmdLineBadArgs(CmdLineEvent e)
cmdLineBadArgs in interface CmdLineListenerpublic void cmdLineHelpRequest(CmdLineEvent e)
cmdLineHelpRequest in interface CmdLineListenerCmdLineListener.cmdLineHelpRequest(org.openmdx.base.application.control.CmdLineEvent)public void cmdLineVersionRequest(CmdLineEvent e)
cmdLineVersionRequest in interface CmdLineListenerCmdLineListener.cmdLineVersionRequest(org.openmdx.base.application.control.CmdLineEvent)public void cmdLineTrace(CmdLineEvent e)
cmdLineTrace in interface CmdLineListenerCmdLineListener.cmdLineTrace(org.openmdx.base.application.control.CmdLineEvent)public void exceptionThrown(Exception e)
exceptionThrown in interface ExceptionListenerExceptionListener.exception(org.openmdx.compatibility.base.application.control.ExceptionEvent)public void exit()
public Application getApplication()
public void initLogging(String configName,
String logSource)
configName - A configuration namelogSource - A log sourcepublic CmdLineArgs getCmdLineArgs()
public String[] getRawArgs()
protected void handleExceptionEvent(Exception exception)
exception - An exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||