net.sf.doolin.context
Class ApplicationLauncher

java.lang.Object
  extended by net.sf.doolin.context.ApplicationLauncher

public abstract class ApplicationLauncher
extends Object

Application.

Author:
Damien Coraboeuf

Field Summary
static String BEAN_APPLICATION
          Default bean name for the application.
 
Method Summary
static Application launch(String... contextPaths)
          Launches an application from a set of Spring contexts.
static Application launchNamed(String id, String... contextPaths)
          Launches an application from a set of Spring contexts.
static Application launchNamedWithArgs(String id, String[] contextPaths, String[] arguments)
          Launches an application from a set of Spring contexts.
static Application launchWithArgs(String[] contextPaths, String[] arguments)
          Launches an application from a set of Spring contexts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEAN_APPLICATION

public static final String BEAN_APPLICATION
Default bean name for the application.

See Also:
Constant Field Values
Method Detail

launch

public static Application launch(String... contextPaths)
Launches an application from a set of Spring contexts. The application is defined using the bean ID "Application".

Parameters:
contextPaths - List of Spring contexts.
Returns:
Launched application

launchWithArgs

public static Application launchWithArgs(String[] contextPaths,
                                         String[] arguments)
Launches an application from a set of Spring contexts. The application is defined using the bean ID "Application".

Parameters:
contextPaths - List of Spring contexts.
arguments - Arguments for the launch
Returns:
Launched application

launchNamed

public static Application launchNamed(String id,
                                      String... contextPaths)
Launches an application from a set of Spring contexts. The application is defined using the bean ID "Application".

Parameters:
id - Bean ID for the application
contextPaths - List of Spring contexts.
Returns:
Launched application

launchNamedWithArgs

public static Application launchNamedWithArgs(String id,
                                              String[] contextPaths,
                                              String[] arguments)
Launches an application from a set of Spring contexts. The application is defined using the bean ID "Application".

Parameters:
id - Bean ID for the application
contextPaths - List of Spring contexts.
arguments - Arguments for the launch
Returns:
Launched application


Copyright © 2011. All Rights Reserved.