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.TargetSpecRegister a method target.- Specified by:
methodin interfaceCommandRegistration.TargetSpec- Parameters:
bean- the beanmethod- the method- Returns:
- a target spec for chaining
-
method
Description copied from interface:CommandRegistration.TargetSpecRegister a method target.- Specified by:
methodin interfaceCommandRegistration.TargetSpec- Parameters:
bean- the beanmethod- the methodparamTypes- the parameter types- Returns:
- a target spec for chaining
-
function
Description copied from interface:CommandRegistration.TargetSpecRegister a function target.- Specified by:
functionin interfaceCommandRegistration.TargetSpec- Parameters:
function- the function to register- Returns:
- a target spec for chaining
-
consumer
Description copied from interface:CommandRegistration.TargetSpecRegister a consumer target.- Specified by:
consumerin interfaceCommandRegistration.TargetSpec- Parameters:
consumer- the consumer to register- Returns:
- a target spec for chaining
-
and
Description copied from interface:CommandRegistration.TargetSpecReturn a builder for chaining.- Specified by:
andin interfaceCommandRegistration.TargetSpec- Returns:
- a builder for chaining
-