Interface ComponentFlow.Builder
- All Known Implementing Classes:
ComponentFlow.BaseBuilder
,ComponentFlow.DefaultBuilder
- Enclosing interface:
- ComponentFlow
public static interface ComponentFlow.Builder
Interface for a wizard 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
-
withStringInput
Gets a builder for string input.- Parameters:
id
- the identifier- Returns:
- builder for string input
-
withPathInput
Gets a builder for path input.- Parameters:
id
- the identifier- Returns:
- builder for text input
-
withConfirmationInput
Gets a builder for confirmation input.- Parameters:
id
- the identifier- Returns:
- builder for text input
-
withSingleItemSelector
Gets a builder for single item selector.- Parameters:
id
- the identifier- Returns:
- builder for single item selector
-
withMultiItemSelector
Gets a builder for multi item selector.- Parameters:
id
- the identifier- Returns:
- builder for multi item selector
-
terminal
Sets aTerminal
.- Parameters:
terminal
- the terminal- Returns:
- a builder
-
resourceLoader
Sets aResourceLoader
.- Parameters:
resourceLoader
- the resource loader- Returns:
- a builder
-
templateExecutor
Sets aTemplateExecutor
.- Parameters:
templateExecutor
- the template executor- Returns:
- a builder
-
clone
ComponentFlow.Builder clone()Clones existing builder.- Returns:
- a builder
-
reset
ComponentFlow.Builder reset()Resets existing builder.- Returns:
- a builder
-
build
ComponentFlow build()Builds instance of input wizard.- Returns:
- instance of input wizard
-