Class BcStandardApplicationRunner


  • public class BcStandardApplicationRunner
    extends java.lang.Object
    Eine Alternative für den StandardApplicationRunner mit mehr Optionen.
    • Method Summary

      Modifier and Type Method Description
      static void run​(de.bsvrz.sys.funclib.application.StandardApplication application, java.lang.String[] args)
      Identischt mit run(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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BcStandardApplicationRunner

        protected BcStandardApplicationRunner()
        Konstruktor verstecken. Der Standardkonstruktor tut nichts.
    • 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) und StandardApplication.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. Wenn null, 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 auf false gesetzt, muss die Applikation selber das Ready-Signal mit ClientDavInterface.sendApplicationReadyMessage() senden.
        uncaughtExceptionHandler - dieses Flag sagt aus, ob ein UncaughtExceptionHandler installiert werden soll. Ist das Flag true, 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 mit run(application, args, null, true, true).
        Parameters:
        application - die zu initialisierende Applikation.
        args - die Kommandozeilenargumente der Applikation.
        See Also:
        run(StandardApplication, String[], String, boolean, boolean)