|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.isam.perv.desktop.Launcher
Helper tool used to launch ISAM applications.
Field Summary | |
(package private) static int |
ERR_ARG_MISSING
Exit code if a command-line argument is missing. |
(package private) static int |
ERR_UNEXPECTED
Exit code if an unexpected error occured. |
(package private) static boolean |
NDEBUG
Set to 'true' if debugging output should be generated. |
(package private) static java.lang.String |
PROGRAM_NAME
Program name displayed by the --help command-line option. |
(package private) static java.lang.String |
USER_PROPS_FILE
Name of the properties file that holds user-specific ISAM configurations. |
Constructor Summary | |
Launcher()
|
Method Summary | |
static void |
launch(java.lang.String appDescUrl,
java.lang.String inUrl,
java.lang.String outUrl,
java.lang.String errUrl,
java.lang.String[] params)
Launches the ISAM application defined by the launch descriptor pointed by appDescUrl , providing params as
startup arguments. |
static void |
main(java.lang.String[] args)
Launcher entry-point for stand-alone operation mode. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final boolean NDEBUG
static final int ERR_ARG_MISSING
static final int ERR_UNEXPECTED
static final java.lang.String PROGRAM_NAME
static final java.lang.String USER_PROPS_FILE
Constructor Detail |
public Launcher()
Method Detail |
public static final void launch(java.lang.String appDescUrl, java.lang.String inUrl, java.lang.String outUrl, java.lang.String errUrl, java.lang.String[] params) throws java.lang.Exception
appDescUrl
, providing params
as
startup arguments. The standard streams in, out and err are
redirected to inUrl, outUrl, and errUrl respectively.
appDescUrl
- URL to a valid ISAM Application Launch DescriptorinUrl
- System.in redirectionoutUrl
- System.out redirectionerrUrl
- System.err redirectionparams
- Arguments to be passed to application's main method.
java.lang.Exception
- if an error occurspublic static void main(java.lang.String[] args) throws java.lang.Exception
args
- a String[]
value
java.lang.Exception
- if an error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |