Class ViewComponentExecutor

java.lang.Object
org.springframework.shell.component.ViewComponentExecutor
All Implemented Interfaces:
AutoCloseable

public class ViewComponentExecutor extends Object implements AutoCloseable
Executor for ViewComponent. Purpose of this executor is to run component in a thread so that it doesn't need to block from a command.
  • Constructor Details

    • ViewComponentExecutor

      public ViewComponentExecutor()
  • Method Details

    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception
    • start

      public ViewComponent.ViewComponentRun start(Runnable runnable)
      Execute runnable and return state which can be used for further operations.
      Parameters:
      runnable - the runnable
      Returns:
      run state
    • stop

      public void stop()
      Stop a ViewComponent which has been previously started with this executor.