SRJRCFrames
v0.1.296

de.schwarzrot.main.app
Class AppMain

java.lang.Object
  extended by de.schwarzrot.main.app.AppMain
All Implemented Interfaces:
MainEntry<DesktopConfig>, Runnable

public class AppMain
extends Object
implements MainEntry<DesktopConfig>


Method Summary
 Map<String,String> getAppArgs()
          provide access to the expanded arguments of main(String[] args)
 String getAppInfo()
          print initial startup information
 SystemDefault getApplicationDefaults()
          access the application defaults.
 String getApplicationName()
          print the application name - may be localized.
 DesktopConfig getConfig()
          access application starters configuration instance
static void main(String[] args)
           
 void run()
           
 void setAppArgs(Map<String,String> appArgs)
          set expanded arguments of main(String[] args)
 void setConfig(DesktopConfig config)
          set application starters configuration instance
protected  void start(Desktop desktop)
           
 void usage()
          tell the user about the right usage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAppArgs

public Map<String,String> getAppArgs()
Description copied from interface: MainEntry
provide access to the expanded arguments of main(String[] args)

Specified by:
getAppArgs in interface MainEntry<DesktopConfig>
Returns:
- given arguments (if any)

getAppInfo

public String getAppInfo()
Description copied from interface: MainEntry
print initial startup information

Specified by:
getAppInfo in interface MainEntry<DesktopConfig>
Returns:
- the message to print at application start

getApplicationDefaults

public SystemDefault getApplicationDefaults()
Description copied from interface: MainEntry
access the application defaults. As the framework provides parts of application contexts, its essential to be able to change the settings of the placeholderConfigurer. So the SystemDefaults can't be coded as static class. This call will return an instance, that is provided by the framework, but can be overwritten by user applications.

Specified by:
getApplicationDefaults in interface MainEntry<DesktopConfig>
Returns:
an instance that provides the system defaults

getApplicationName

public String getApplicationName()
Description copied from interface: MainEntry
print the application name - may be localized. For identifying purpose consider using SystemDefault.applicationID

Specified by:
getApplicationName in interface MainEntry<DesktopConfig>
Returns:
- the applications name

getConfig

public DesktopConfig getConfig()
Description copied from interface: MainEntry
access application starters configuration instance

Specified by:
getConfig in interface MainEntry<DesktopConfig>
Returns:
the configuration instance

run

public void run()
Specified by:
run in interface Runnable

setAppArgs

public void setAppArgs(Map<String,String> appArgs)
Description copied from interface: MainEntry
set expanded arguments of main(String[] args)

Specified by:
setAppArgs in interface MainEntry<DesktopConfig>
Parameters:
appArgs - arguments from main expanded to key/value pairs

setConfig

public void setConfig(DesktopConfig config)
Description copied from interface: MainEntry
set application starters configuration instance

Specified by:
setConfig in interface MainEntry<DesktopConfig>
Parameters:
config - the configuration instance

usage

public void usage()
Description copied from interface: MainEntry
tell the user about the right usage

Specified by:
usage in interface MainEntry<DesktopConfig>

start

protected void start(Desktop desktop)

main

public static void main(String[] args)

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
Submit a bug or request a feature

SRJRCFrames is published according to the GNU General Public License
Copyright 2005-2012 Reinhard Mantey - some rights reserved.