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
ConstructorsConstructorDescriptionDefaultTargetInfo(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.TargetInfoGet target type- Specified by:
 getTargetTypein interfaceCommandRegistration.TargetInfo- Returns:
 - the target type
 
 - 
getBean
Description copied from interface:CommandRegistration.TargetInfoGet the bean.- Specified by:
 getBeanin interfaceCommandRegistration.TargetInfo- Returns:
 - the bean
 
 - 
getMethod
Description copied from interface:CommandRegistration.TargetInfoGet the bean method- Specified by:
 getMethodin interfaceCommandRegistration.TargetInfo- Returns:
 - the bean method
 
 - 
getFunction
Description copied from interface:CommandRegistration.TargetInfoGet the function- Specified by:
 getFunctionin interfaceCommandRegistration.TargetInfo- Returns:
 - the function
 
 - 
getConsumer
Description copied from interface:CommandRegistration.TargetInfoGet the consumer- Specified by:
 getConsumerin interfaceCommandRegistration.TargetInfo- Returns:
 - the consumer
 
 
 -