Package org.springframework.boot.loader
Class MainMethodRunner
java.lang.Object
org.springframework.boot.loader.MainMethodRunner
Utility class that is used by
Launcher
s to call a main method. The class
containing the main method is loaded using the thread context class loader.- Since:
- 1.0.0
- Author:
- Phillip Webb, Andy Wilkinson
-
Constructor Summary
ConstructorDescriptionMainMethodRunner
(String mainClass, String[] args) Create a newMainMethodRunner
instance. -
Method Summary
-
Constructor Details
-
MainMethodRunner
Create a newMainMethodRunner
instance.- Parameters:
mainClass
- the main classargs
- incoming arguments
-
-
Method Details
-
run
- Throws:
Exception
-