de.qfs.apps.qflog
Class App

java.lang.Object
  |
  +--de.qfs.apps.qflog.App

public class App
extends java.lang.Object

Convenience class that gives access to the major pieces of the qflog application.

Version:
$Revision: 1.13 $
Author:
Gregor Schmid

Method Summary
static de.qfs.lib.command.CommandDistributor getCommandDistributor()
          Get the CommandDistributor used by the application.
 java.io.File getConfigFile()
          Get the configFile of the application.
static de.qfs.lib.option.OptionSet getOptions()
          Get the Options for the application.
static de.qfs.lib.util.MapResourceBundle getResources()
          Get the resources of the application.
 java.lang.String getServerHost()
          Get the serverHost of the application.
 java.lang.String getServerName()
          Get the serverName of the application.
static App instance()
          Get the singleton App instance.
 void reloadResources()
          (Re)load the resources for the application.
 void setConfigFile(java.io.File configFile)
          Set the configFile of the application.
 void setServerHost(java.lang.String serverHost)
          Set the serverHost of the application.
 void setServerName(java.lang.String serverName)
          Set the serverName of the application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static App instance()
Get the singleton App instance.
Returns:
The single App instance.

getResources

public static final de.qfs.lib.util.MapResourceBundle getResources()
Get the resources of the application.
Returns:
The resources of the App.

getCommandDistributor

public static de.qfs.lib.command.CommandDistributor getCommandDistributor()
Get the CommandDistributor used by the application.
Returns:
The CommandDistributor.

getOptions

public static de.qfs.lib.option.OptionSet getOptions()
Get the Options for the application.
Returns:
The Options.

reloadResources

public void reloadResources()
(Re)load the resources for the application.

getConfigFile

public final java.io.File getConfigFile()
Get the configFile of the application.
Returns:
The configFile of the application.

setConfigFile

public final void setConfigFile(java.io.File configFile)
Set the configFile of the application.
Parameters:
configFile - The configFile to set.

getServerName

public final java.lang.String getServerName()
Get the serverName of the application.
Returns:
The serverName of the application.

setServerName

public final void setServerName(java.lang.String serverName)
Set the serverName of the application.
Parameters:
serverName - The serverName to set.

getServerHost

public final java.lang.String getServerHost()
Get the serverHost of the application.
Returns:
The serverHost of the application.

setServerHost

public final void setServerHost(java.lang.String serverHost)
Set the serverHost of the application.
Parameters:
serverHost - The serverHost to set.