public class SampleCmdLine
extends java.lang.Object
MainCmd
-super-class.....SampleCmdLine.UserMain
is an example for the user's class. It contains some less statements to show what's work
but it does not contain essential code.
SampleCmdLine.Args
class to hold the data from the cmd line invocation in a proper form or some other values too.
This class may be an independent mediator between an independent SampleCmdLine.UserMain
and the MainCmd
implementor.
SampleCmdLine.CmdLine
is derived from MainCmd
and implements the command line invocation necessities
of this example.
Modifier and Type | Class and Description |
---|---|
(package private) static class |
SampleCmdLine.Args
This class holds the got arguments from command line.
|
(package private) static class |
SampleCmdLine.CmdLine
The inner class CmdLine helps to evaluate the command line arguments
and show help messages on command line.
|
static class |
SampleCmdLine.UserMain
This class represents a user's class.
|
Modifier and Type | Field and Description |
---|---|
static int |
version
Version, history and license.
|
Constructor and Description |
---|
SampleCmdLine() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] cmdlineargs)
main started from java
|
public static final int version
SampleCmdLine.UserMain
as extra inner class, LogMessage, commented.
SampleCmdLine.CmdLine
and the SampleCmdLine.Args
but not the main class itself,
because the Main-class of the application may got some other aggregates,
which may created first and outside (dependency injection, inside using final).
It is also possible to create more as one classes in SampleCmdLine#reflexAccessSfc
,
especially SampleCmdLine
may only be an empty wrapper
for organization of main, Args and MainCmd, without deeper dependencies to the core application.