Class CommandRegistration.TargetInfo.DefaultTargetInfo
java.lang.Object
org.springframework.shell.command.CommandRegistration.TargetInfo.DefaultTargetInfo
- All Implemented Interfaces:
CommandRegistration.TargetInfo
- Enclosing interface:
- CommandRegistration.TargetInfo
public static class CommandRegistration.TargetInfo.DefaultTargetInfo
extends Object
implements CommandRegistration.TargetInfo
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.shell.command.CommandRegistration.TargetInfo
CommandRegistration.TargetInfo.DefaultTargetInfo, CommandRegistration.TargetInfo.TargetType
-
Constructor Summary
ConstructorDescriptionDefaultTargetInfo
(CommandRegistration.TargetInfo.TargetType targetType, Object bean, Method method, Function<CommandContext, ?> function, Consumer<CommandContext> consumer) -
Method Summary
Modifier and TypeMethodDescriptiongetBean()
Get the bean.Get the consumerGet the functionGet the bean methodGet target type
-
Constructor Details
-
DefaultTargetInfo
public DefaultTargetInfo(CommandRegistration.TargetInfo.TargetType targetType, Object bean, Method method, Function<CommandContext, ?> function, Consumer<CommandContext> consumer)
-
-
Method Details
-
getTargetType
Description copied from interface:CommandRegistration.TargetInfo
Get target type- Specified by:
getTargetType
in interfaceCommandRegistration.TargetInfo
- Returns:
- the target type
-
getBean
Description copied from interface:CommandRegistration.TargetInfo
Get the bean.- Specified by:
getBean
in interfaceCommandRegistration.TargetInfo
- Returns:
- the bean
-
getMethod
Description copied from interface:CommandRegistration.TargetInfo
Get the bean method- Specified by:
getMethod
in interfaceCommandRegistration.TargetInfo
- Returns:
- the bean method
-
getFunction
Description copied from interface:CommandRegistration.TargetInfo
Get the function- Specified by:
getFunction
in interfaceCommandRegistration.TargetInfo
- Returns:
- the function
-
getConsumer
Description copied from interface:CommandRegistration.TargetInfo
Get the consumer- Specified by:
getConsumer
in interfaceCommandRegistration.TargetInfo
- Returns:
- the consumer
-