Package org.seedstack.seed.spi
Interface SeedLauncher
-
public interface SeedLauncherThis interface defines a method that can launch a SeedStack application. Implementations must be declared as aServiceLoaderservice in META-INF/services to be detected.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Optional<io.nuun.kernel.api.Kernel>getKernel()Returns the currently running kernel created by this launcher.default voidlaunch(String[] args)Launches the SeedStack application.voidlaunch(String[] args, Map<String,String> kernelParameters)Launches the SeedStack application with custom kernel parameters.default voidrefresh()Refreshes the SeedStack application.voidshutdown()Shutdown the SeedStack application.
-
-
-
Method Detail
-
launch
default void launch(String[] args) throws Exception
Launches the SeedStack application.- Parameters:
args- arguments of the SeedStack application.- Throws:
Exception- when something goes wrong.
-
launch
void launch(String[] args, Map<String,String> kernelParameters) throws Exception
Launches the SeedStack application with custom kernel parameters.- Parameters:
args- arguments of the SeedStack application.kernelParameters- the custom kernel parameters.- Throws:
Exception- when something goes wrong.
-
refresh
default void refresh() throws ExceptionRefreshes the SeedStack application.- Throws:
Exception- when something goes wrong.
-
getKernel
default Optional<io.nuun.kernel.api.Kernel> getKernel()
Returns the currently running kernel created by this launcher.- Returns:
- the optional containing the currently running kernel or an empty optional if none is currently running.
-
-