Class ComponentFlow.BaseBuilder
java.lang.Object
org.springframework.shell.component.flow.ComponentFlow.BaseBuilder
- All Implemented Interfaces:
ComponentFlow.Builder
- Direct Known Subclasses:
ComponentFlow.DefaultBuilder
- Enclosing interface:
- ComponentFlow
public abstract static class ComponentFlow.BaseBuilder
extends Object
implements ComponentFlow.Builder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds instance of input wizard.clone()
Clones existing builder.reset()
Resets existing builder.resourceLoader
(org.springframework.core.io.ResourceLoader resourceLoader) Sets aResourceLoader
.templateExecutor
(TemplateExecutor templateExecutor) Sets aTemplateExecutor
.terminal
(org.jline.terminal.Terminal terminal) Sets aTerminal
.Gets a builder for confirmation input.Gets a builder for multi item selector.withPathInput
(String id) Gets a builder for path input.Gets a builder for single item selector.Gets a builder for string input.
-
Method Details
-
build
Description copied from interface:ComponentFlow.Builder
Builds instance of input wizard.- Specified by:
build
in interfaceComponentFlow.Builder
- Returns:
- instance of input wizard
-
withStringInput
Description copied from interface:ComponentFlow.Builder
Gets a builder for string input.- Specified by:
withStringInput
in interfaceComponentFlow.Builder
- Parameters:
id
- the identifier- Returns:
- builder for string input
-
withPathInput
Description copied from interface:ComponentFlow.Builder
Gets a builder for path input.- Specified by:
withPathInput
in interfaceComponentFlow.Builder
- Parameters:
id
- the identifier- Returns:
- builder for text input
-
withConfirmationInput
Description copied from interface:ComponentFlow.Builder
Gets a builder for confirmation input.- Specified by:
withConfirmationInput
in interfaceComponentFlow.Builder
- Parameters:
id
- the identifier- Returns:
- builder for text input
-
withSingleItemSelector
Description copied from interface:ComponentFlow.Builder
Gets a builder for single item selector.- Specified by:
withSingleItemSelector
in interfaceComponentFlow.Builder
- Parameters:
id
- the identifier- Returns:
- builder for single item selector
-
withMultiItemSelector
Description copied from interface:ComponentFlow.Builder
Gets a builder for multi item selector.- Specified by:
withMultiItemSelector
in interfaceComponentFlow.Builder
- Parameters:
id
- the identifier- Returns:
- builder for multi item selector
-
terminal
Description copied from interface:ComponentFlow.Builder
Sets aTerminal
.- Specified by:
terminal
in interfaceComponentFlow.Builder
- Parameters:
terminal
- the terminal- Returns:
- a builder
-
resourceLoader
public ComponentFlow.Builder resourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) Description copied from interface:ComponentFlow.Builder
Sets aResourceLoader
.- Specified by:
resourceLoader
in interfaceComponentFlow.Builder
- Parameters:
resourceLoader
- the resource loader- Returns:
- a builder
-
templateExecutor
Description copied from interface:ComponentFlow.Builder
Sets aTemplateExecutor
.- Specified by:
templateExecutor
in interfaceComponentFlow.Builder
- Parameters:
templateExecutor
- the template executor- Returns:
- a builder
-
clone
Description copied from interface:ComponentFlow.Builder
Clones existing builder.- Specified by:
clone
in interfaceComponentFlow.Builder
- Overrides:
clone
in classObject
- Returns:
- a builder
-
reset
Description copied from interface:ComponentFlow.Builder
Resets existing builder.- Specified by:
reset
in interfaceComponentFlow.Builder
- Returns:
- a builder
-