Interface SeedLauncher


  • public interface SeedLauncher
    This interface defines a method that can launch a SeedStack application. Implementations must be declared as a ServiceLoader service in META-INF/services to be detected.
    • 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 Exception
        Refreshes 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.
      • shutdown

        void shutdown()
               throws Exception
        Shutdown the SeedStack application.
        Throws:
        Exception - when something goes wrong.