Class ViewComponentExecutor
java.lang.Object
org.springframework.shell.component.ViewComponentExecutor
- All Implemented Interfaces:
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
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
start
Execute runnable and return state which can be used for further operations.- Parameters:
runnable
- the runnable- Returns:
- run state
-
stop
public void stop()Stop aViewComponent
which has been previously started with this executor.
-