org.kuali.common.util.main
Class MainUtils

java.lang.Object
  extended by org.kuali.common.util.main.MainUtils

public class MainUtils
extends Object


Field Summary
static String MAIN_CONTEXT_BEAN_NAME
           
static String MAIN_PROFILE_NAME
           
 
Constructor Summary
MainUtils()
           
 
Method Summary
protected static void handleException(Exception e, boolean stacktrace, boolean exit)
           
static void run(Class<?> mainClass, String[] args)
          Load the @Configuration mainClass using Spring
static void run(Class<?> mainClass, String[] args, boolean stacktrace)
          Load the @Configuration mainClass using Spring
static void run(Class<?> mainClass, String[] args, boolean stacktrace, boolean exit)
           
static void runAndExit(Class<?> mainClass, String[] args)
          Load the @Configuration mainClass using Spring and then terminate the JVM.
static void runAndExit(Class<?> mainClass, String[] args, boolean stacktrace)
          Load the @Configuration mainClass using Spring and then terminate the JVM.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAIN_CONTEXT_BEAN_NAME

public static final String MAIN_CONTEXT_BEAN_NAME
See Also:
Constant Field Values

MAIN_PROFILE_NAME

public static final String MAIN_PROFILE_NAME
See Also:
Constant Field Values
Constructor Detail

MainUtils

public MainUtils()
Method Detail

runAndExit

public static void runAndExit(Class<?> mainClass,
                              String[] args)
Load the @Configuration mainClass using Spring and then terminate the JVM.


runAndExit

public static void runAndExit(Class<?> mainClass,
                              String[] args,
                              boolean stacktrace)
Load the @Configuration mainClass using Spring and then terminate the JVM.


run

public static void run(Class<?> mainClass,
                       String[] args,
                       boolean stacktrace)
Load the @Configuration mainClass using Spring


run

public static void run(Class<?> mainClass,
                       String[] args)
Load the @Configuration mainClass using Spring


run

public static void run(Class<?> mainClass,
                       String[] args,
                       boolean stacktrace,
                       boolean exit)

handleException

protected static void handleException(Exception e,
                                      boolean stacktrace,
                                      boolean exit)


Copyright © 2010–2014 The Kuali Foundation. All rights reserved.