Package | Description |
---|---|
org.springframework.shell.component | |
org.springframework.shell.component.context | |
org.springframework.shell.component.support |
Modifier and Type | Interface and Description |
---|---|
static interface |
ConfirmationInput.ConfirmationInputContext |
static interface |
MultiItemSelector.MultiItemSelectorContext<T,I extends Nameable & Matchable & Itemable<T>>
Context
MultiItemSelector . |
static interface |
PathInput.PathInputContext |
static interface |
SingleItemSelector.SingleItemSelectorContext<T,I extends Nameable & Matchable & Itemable<T>>
Context
SingleItemSelector . |
static interface |
StringInput.StringInputContext |
Modifier and Type | Method and Description |
---|---|
protected StringInput.StringInputContext |
StringInput.getThisContext(ComponentContext<?> context) |
protected SingleItemSelector.SingleItemSelectorContext<T,I> |
SingleItemSelector.getThisContext(ComponentContext<?> context) |
protected PathInput.PathInputContext |
PathInput.getThisContext(ComponentContext<?> context) |
protected MultiItemSelector.MultiItemSelectorContext<T,I> |
MultiItemSelector.getThisContext(ComponentContext<?> context) |
protected ConfirmationInput.ConfirmationInputContext |
ConfirmationInput.getThisContext(ComponentContext<?> context) |
Modifier and Type | Class and Description |
---|---|
class |
BaseComponentContext<C extends ComponentContext<C>>
Base implementation of a
ComponentContext . |
interface |
ComponentContext<C extends ComponentContext<C>>
Contract for base component context having access to basic key/value pairs.
|
Modifier and Type | Class and Description |
---|---|
class |
BaseComponentContext<C extends ComponentContext<C>>
Base implementation of a
ComponentContext . |
Modifier and Type | Method and Description |
---|---|
static <C extends ComponentContext<C>> |
ComponentContext.empty()
Gets an empty context.
|
Modifier and Type | Method and Description |
---|---|
static <C extends ComponentContext<C>> |
ComponentContext.empty()
Gets an empty context.
|
ComponentContext<C> |
ComponentContext.put(Object key,
Object value)
Put an entry into a context.
|
ComponentContext<C> |
BaseComponentContext.put(Object key,
Object value) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractComponent<T extends ComponentContext<T>>
Base class for components.
|
Modifier and Type | Interface and Description |
---|---|
static interface |
AbstractSelectorComponent.SelectorComponentContext<T,I extends Nameable & Matchable & Itemable<T>,C extends AbstractSelectorComponent.SelectorComponentContext<T,I,C>>
Context interface on a selector component sharing content.
|
static interface |
AbstractTextComponent.TextComponentContext<T,C extends AbstractTextComponent.TextComponentContext<T,C>> |
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractSelectorComponent.BaseSelectorComponentContext<T,I extends Nameable & Matchable & Itemable<T>,C extends AbstractSelectorComponent.SelectorComponentContext<T,I,C>>
Base implementation of a
AbstractSelectorComponent.SelectorComponentContext . |
static class |
AbstractTextComponent.BaseTextComponentContext<T,C extends AbstractTextComponent.TextComponentContext<T,C>> |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
AbstractComponent.getThisContext(ComponentContext<?> context)
Gets a real component context using common this trick.
|
protected void |
AbstractComponent.loop(ComponentContext<?> context)
Enter into read loop.
|
T |
AbstractComponent.run(ComponentContext<?> context)
Runs a component logic with a given context and returns updated context.
|
Copyright © 2022. All rights reserved.