Class MainMethodRunner

java.lang.Object
org.springframework.boot.loader.MainMethodRunner

public class MainMethodRunner extends Object
Utility class that is used by Launchers 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 Details

    • MainMethodRunner

      public MainMethodRunner(String mainClass, String[] args)
      Create a new MainMethodRunner instance.
      Parameters:
      mainClass - the main class
      args - incoming arguments
  • Method Details