Interface InnovatorApplication

  • All Known Implementing Classes:
    InnovatorApplicationDefault

    public interface InnovatorApplication
    Every Java application that should be run as an Innovator application should commit to this interface.
    Author:
    borschet
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void info​(java.lang.String msg, java.lang.Object... args)
      Protocols any messages at info level.
      void log​(java.util.logging.Level l, java.lang.String msg, java.lang.Object... args)
      Protocols any messages.
      void msg​(java.lang.String key, java.lang.Object... args)
      Should be called to show the application user an NLS message.
      void onExit()
      Performs a clean up.
      void onInit()
      Initializes the application or provides attribute values that can control the behavior during initialization.
      void run()
      Contains the real work the application does.
      java.lang.String Usage()  
      void warning​(java.lang.String key, java.lang.Object... args)
      Shows the application user a warning message.
    • Method Detail

      • onInit

        void onInit()
        Initializes the application or provides attribute values that can control the behavior during initialization.
      • onExit

        void onExit()
        Performs a clean up.
      • run

        void run()
          throws InoNlsException
        Contains the real work the application does.
        Throws:
        InoNlsException - If anything happens that causes the application to stop.
      • log

        void log​(java.util.logging.Level l,
                 java.lang.String msg,
                 java.lang.Object... args)
        Protocols any messages.
        Parameters:
        l - the logging level
        msg - a message that can contain message format variables
        args - the arguments for the message format
      • info

        void info​(java.lang.String msg,
                  java.lang.Object... args)
        Protocols any messages at info level.
        Parameters:
        msg - a message that can contain message format variables
        args - the arguments for the message format
      • msg

        void msg​(java.lang.String key,
                 java.lang.Object... args)
        Should be called to show the application user an NLS message.
        Parameters:
        key - a property file's message key
        args - the arguments for the message format
      • warning

        void warning​(java.lang.String key,
                     java.lang.Object... args)
        Shows the application user a warning message.
        Parameters:
        key - a property file's message key
        args - the arguments for the message format
      • Usage

        java.lang.String Usage()
        Returns:
        A string containing the usage of the Innovator application.