kortsoft.kmx.bootstrap
Class KmxLauncher
java.lang.Object
kortsoft.kmx.bootstrap.KmxLauncher
public class KmxLauncher
- extends java.lang.Object
Class in charge of initial class loading.
It takes a property configuration file (well from the
classpath in the same package as this class and name
kmxlauncher.properties, well from the
filename passed as argument to the main function.
These are the properties expected:
- lib.dir: Load all the .jar files from
that directory.
- resources.dir: Load the directory in the classpath.
- main.class: The name of the class that must implements
KmxMain.
Before execute the Main Class, the Launcher adds a Shutdown Hook.
This hook calls closeServices()
on the KmxMain interface.
- Author:
- kortatu
Method Summary |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROP_FILE_NAME
public static final java.lang.String PROP_FILE_NAME
- See Also:
- Constant Field Values
LIB_DIR_PARAM
public static final java.lang.String LIB_DIR_PARAM
- See Also:
- Constant Field Values
RESOURCES_DIR_PARAM
public static final java.lang.String RESOURCES_DIR_PARAM
- See Also:
- Constant Field Values
MAIN_CLASS_PARAM
public static final java.lang.String MAIN_CLASS_PARAM
- See Also:
- Constant Field Values
finalizador
protected static KmxLauncher.Finalizer finalizador
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2005 Kortsoft. All Rights Reserved.