Module io.inverno.tool.buildtools
Package io.inverno.tool.buildtools
Interface BuildRuntimeTask.Launcher
- Enclosing interface:
BuildRuntimeTask
public static interface BuildRuntimeTask.Launcher
Parameters describing a runtime image launcher.
- Since:
- 1.4
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptionReturns the main class to execute with the laucnher.Returns the module to execute with the launcher.getName()
Returns the name of the launcher.static BuildRuntimeTask.Launcher
Creates a runtime launcher of the specified name.static BuildRuntimeTask.Launcher
Creates a runtime launcher of the specified name for the specified module.static BuildRuntimeTask.Launcher
Creates a runtime launcher of the specified name for the specified module and main class.
-
Method Details
-
getName
String getName()Returns the name of the launcher.
- Returns:
- the name of the launcher
-
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
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
Creates a runtime launcher of the specified name for the specified module.
- Parameters:
name
- the name of the launchermoduleName
- the module to execute- Returns:
- a runtime launcher
-
of
Creates a runtime launcher of the specified name for the specified module and main class.
- Parameters:
name
- the name of the launchermoduleName
- the module to executemainClass
- the main class to execute- Returns:
- a runtime launcher
-