de.mid.innovator.ui
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
 void info(String msg, Object... args)
          Protocols any messages at info level.
 void log(Level l, String msg, Object... args)
          Protocols any messages.
 void msg(String key, 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.
 String Usage()
           
 void warning(String key, Object... args)
          Shows the application user a warning message.
 

Method Detail

info

void info(String msg,
          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

log

void log(Level l,
         String msg,
         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

msg

void msg(String key,
         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

onExit

void onExit()
Performs a clean up.


onInit

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


run

void run()
         throws InoNlsException
Contains the real work the application does.

Throws:
InoNlsException - If anything happens that causes the application to stop.

Usage

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

warning

void warning(String key,
             Object... args)
Shows the application user a warning message.

Parameters:
key - a property file's message key
args - the arguments for the message format