org.springframework.boot.loader
Class MainMethodRunner
java.lang.Object
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
|
Method Summary |
void |
run()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MainMethodRunner
public MainMethodRunner(String mainClass,
String[] args)
- Create a new
MainMethodRunner instance.
- Parameters:
mainClass - the main classargs - incoming arguments
run
public void run()
- Specified by:
run in interface Runnable
Copyright © 2013. All Rights Reserved.