gnu.beanfactory
Class Startup
java.lang.Object
|
+--gnu.beanfactory.Startup
- public class Startup
- extends java.lang.Object
Convenience class for initializing BeanFactory.
The BeanFactory container will initialize itself when it is first used,
similar the initialization of a
JDBC driver. This means that the container may be inactive until
some event causes it to start. This class provides a simple solution
to that problem. Instead of launching your application directly,
you can launch
this wrapper which will initialize the BeanFactory container and then
launch your application.
For instance, instead of starting your application like this:
java mypackage.MyApplication <arg1> <arg2> ...
You can start it like this:
java gnu.beanfactory.Startup mypackage.MyApplication <arg1> <arg2> ...
The arguments to main() are properly shifted, so it is not necessary to
modify the original application.
- Author:
- Rob Schoening <rob@beanfactory.net>
|
Method Summary |
static void |
execRunnableBean(java.lang.String url,
java.lang.String[] args)
|
static void |
initializeAndInvokeMain(java.lang.String className,
java.lang.String[] args)
|
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 |
Startup
public Startup()
initializeAndInvokeMain
public static void initializeAndInvokeMain(java.lang.String className,
java.lang.String[] args)
throws java.lang.Exception
execRunnableBean
public static void execRunnableBean(java.lang.String url,
java.lang.String[] args)
throws BeanFactoryException
main
public static void main(java.lang.String[] args)
throws java.lang.Exception