org.springframework.boot.loader

Class 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.
    Author:
    Phillip Webb, Andy Wilkinson
    • Constructor Detail

      • MainMethodRunner

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