dsto.dfc.util.plugins
Class BootStrapLoader
java.lang.Object
dsto.dfc.util.plugins.BootStrapLoader
public class BootStrapLoader
- extends Object
BootStrapLoader loads and runs a main class, using DfcClassLoader
as the class loader. This ensures DfcClassLoader
is the class loader for the application, which enables dynamic
additions to the classpath.
You should specify the main class as the value of the
"bootstrap.mainclass" property either in a property resource called
"/system.properties" (which must be accessible via
Class.getResourceAsStream ()) or on the command line using
"-Dbootstrap.mainclass=...". As a side-effect, all properties in
system.properties are copied into the system-wide set (ie
accessible via System.getProperty ()).
eg: bootstrap.mainclass = dsto.frob.Main
BootStrapLoader will load dsto.frob.Main and call its main ()
method as usual.
- Version:
- $Revision$
- Author:
- Mofeed
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BootStrapLoader
public BootStrapLoader()
main
public static void main(String[] args)
Copyright © 2008 Commonwealth of Australia