Package de.bsvrz.sys.funclib.bitctrl.app
Class BcStandardApplicationRunner
- java.lang.Object
-
- de.bsvrz.sys.funclib.bitctrl.app.BcStandardApplicationRunner
-
public class BcStandardApplicationRunner extends java.lang.Object
Eine Alternative für denStandardApplicationRunner
mit mehr Optionen.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BcStandardApplicationRunner()
Konstruktor verstecken.
-
Method Summary
Modifier and Type Method Description static void
run(de.bsvrz.sys.funclib.application.StandardApplication application, java.lang.String[] args)
Identischt mitrun(application, args, null, true, true)
.static void
run(de.bsvrz.sys.funclib.application.StandardApplication application, java.lang.String[] args, java.lang.String appTypePID, boolean autoReadyMsg, boolean uncaughtExceptionHandler)
Die Methode baut mit Hilfe der Kommandozeilenargumente eine Verbindung zum Datenverteiler auf und initialisiert anschließend die Applikation.
-
-
-
Method Detail
-
run
public static void run(de.bsvrz.sys.funclib.application.StandardApplication application, java.lang.String[] args, java.lang.String appTypePID, boolean autoReadyMsg, boolean uncaughtExceptionHandler)
Die Methode baut mit Hilfe der Kommandozeilenargumente eine Verbindung zum Datenverteiler auf und initialisiert anschließend die Applikation.Bei der Initialisierung werden nacheinander die beiden Methoden
StandardApplication.parseArguments(ArgumentList)
undStandardApplication.initialize(ClientDavInterface)
aufgerufen.- Parameters:
application
- die zu initialisierende Applikation.args
- die Kommandozeilenargumente der Applikation.appTypePID
- die PID die der Applikation als Typ anstelle von typ.applikation gesetzt werden soll. Wennnull
, wird der Applikationstyp nicht geändert.autoReadyMsg
- dieses Flag sagt aus, ob nach der Initialisierung der Anwendung automatisch das Readysignal gesendet werden soll. Ist das Flag auffalse
gesetzt, muss die Applikation selber das Ready-Signal mitClientDavInterface.sendApplicationReadyMessage()
senden.uncaughtExceptionHandler
- dieses Flag sagt aus, ob ein UncaughtExceptionHandler installiert werden soll. Ist das Flagtrue
, wird ein Handler inistalliert, der alle Runtime Exceptions fängt, loggt und anschließend die Applikation beendet.
-
run
public static void run(de.bsvrz.sys.funclib.application.StandardApplication application, java.lang.String[] args)
Identischt mitrun(application, args, null, true, true)
.- Parameters:
application
- die zu initialisierende Applikation.args
- die Kommandozeilenargumente der Applikation.- See Also:
run(StandardApplication, String[], String, boolean, boolean)
-
-