|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectfang.InitializeApplication
public class InitializeApplication
| Constructor Summary | |
|---|---|
InitializeApplication()
|
|
| Method Summary | |
|---|---|
protected static HashMap<String,ArrayList<String>> |
createParameterTable(String[] args)
Creates a hash table containing the parameters specified in the argument list. |
static void |
fangMain(String[] args)
Every application must either contain a "Main-Class" entry in its manifest file or include a main method that looks like this, where MyClass is the name of the program class:
|
protected static String |
getCommandLine()
Returns the command line that invoked this program, or null
if no command line is available. |
protected static String |
readMainClassFromCommandLine(String line)
Attempts to read the name of the main class from the specified command line. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InitializeApplication()
| Method Detail |
|---|
protected static HashMap<String,ArrayList<String>> createParameterTable(String[] args)
name=value
All other arguments are collected and placed in an entry under the key
"ARGS". All named parameters are converted to lower case to
preserve the case-insensitive semantics of getParameter.
args - The array of strings passed to the application
HashMap containing the parameter bindingsprotected static String readMainClassFromCommandLine(String line)
main method, programs can always avoid
the need for this method by supplying their own version of
main.
line - The command line
nullpublic static void fangMain(String[] args)
MyClass is the name of the program class:
public static void main(String[] args)
{
new MyClass().start();
}
If the program needs the command line arguments, the args
array can be passed to the start method and then retrieved
using the getArgumentArray method.
args - An array of string argumentsprotected static String getCommandLine()
null
if no command line is available.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||