Interface BuildRuntimeTask.Launcher

Enclosing interface:
BuildRuntimeTask

public static interface BuildRuntimeTask.Launcher

Parameters describing a runtime image launcher.

Since:
1.4
Author:
Jeremy Kuhn
  • Method Details

    • getName

      String getName()

      Returns the name of the launcher.

      Returns:
      the name of the launcher
    • getModule

      default Optional<String> getModule()

      Returns the module to execute with the launcher.

      Defaults to the project's module.

      Returns:
      an optional returning the the module to execute or an empty optional
    • getMainClass

      default Optional<String> getMainClass()

      Returns the main class to execute with the laucnher.

      If not specified, the launcher's module must provide a main class.

      Returns:
      an optional returning the main class to execute or an empty optional
    • of

      Creates a runtime launcher of the specified name.

      Parameters:
      name - the name of the launcher.
      Returns:
      a runtime launcher
    • of

      static BuildRuntimeTask.Launcher of(String name, String moduleName)

      Creates a runtime launcher of the specified name for the specified module.

      Parameters:
      name - the name of the launcher
      moduleName - the module to execute
      Returns:
      a runtime launcher
    • of

      static BuildRuntimeTask.Launcher of(String name, String moduleName, String mainClass)

      Creates a runtime launcher of the specified name for the specified module and main class.

      Parameters:
      name - the name of the launcher
      moduleName - the module to execute
      mainClass - the main class to execute
      Returns:
      a runtime launcher