Class CommandRegistration.DefaultTargetSpec
java.lang.Object
org.springframework.shell.command.CommandRegistration.DefaultTargetSpec
- All Implemented Interfaces:
CommandRegistration.TargetSpec
- Enclosing interface:
- CommandRegistration
public static class CommandRegistration.DefaultTargetSpec
extends Object
implements CommandRegistration.TargetSpec
-
Method Summary
Modifier and TypeMethodDescriptionand()
Return a builder for chaining.consumer
(Consumer<CommandContext> consumer) Register a consumer target.function
(Function<CommandContext, ?> function) Register a function target.Register a method target.Register a method target.
-
Method Details
-
method
Description copied from interface:CommandRegistration.TargetSpec
Register a method target.- Specified by:
method
in interfaceCommandRegistration.TargetSpec
- Parameters:
bean
- the beanmethod
- the method- Returns:
- a target spec for chaining
-
method
Description copied from interface:CommandRegistration.TargetSpec
Register a method target.- Specified by:
method
in interfaceCommandRegistration.TargetSpec
- Parameters:
bean
- the beanmethod
- the methodparamTypes
- the parameter types- Returns:
- a target spec for chaining
-
function
Description copied from interface:CommandRegistration.TargetSpec
Register a function target.- Specified by:
function
in interfaceCommandRegistration.TargetSpec
- Parameters:
function
- the function to register- Returns:
- a target spec for chaining
-
consumer
Description copied from interface:CommandRegistration.TargetSpec
Register a consumer target.- Specified by:
consumer
in interfaceCommandRegistration.TargetSpec
- Parameters:
consumer
- the consumer to register- Returns:
- a target spec for chaining
-
and
Description copied from interface:CommandRegistration.TargetSpec
Return a builder for chaining.- Specified by:
and
in interfaceCommandRegistration.TargetSpec
- Returns:
- a builder for chaining
-