org.springframework.boot.loader
Class MainMethodRunner

java.lang.Object
  extended by org.springframework.boot.loader.MainMethodRunner
All Implemented Interfaces:
Runnable

public class MainMethodRunner
extends Object
implements Runnable

Utility class that used by Launchers to call a main method. This class allows methods to be executed within a thread configured with a specific context classloader.

Author:
Phillip Webb

Constructor Summary
MainMethodRunner(String mainClass, String[] args)
          Create a new MainMethodRunner instance.
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainMethodRunner

public MainMethodRunner(String mainClass,
                        String[] args)
Create a new MainMethodRunner instance.

Parameters:
mainClass - the main class
args - incoming arguments
Method Detail

run

public void run()
Specified by:
run in interface Runnable


Copyright © 2013. All Rights Reserved.