Interface CommandRegistration.TargetInfo
- All Known Implementing Classes:
CommandRegistration.TargetInfo.DefaultTargetInfo
- Enclosing interface:
- CommandRegistration
public static interface CommandRegistration.TargetInfo
Encapsulates info for
CommandRegistration.TargetSpec
.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static enum
-
Method Summary
Modifier and TypeMethodDescriptiongetBean()
Get the bean.Get the consumerGet the functionGet the bean methodGet target typeof
(Consumer<CommandContext> consumer) of
(Function<CommandContext, ?> function)
-
Method Details
-
getTargetType
CommandRegistration.TargetInfo.TargetType getTargetType()Get target type- Returns:
- the target type
-
getBean
Object getBean()Get the bean.- Returns:
- the bean
-
getMethod
Method getMethod()Get the bean method- Returns:
- the bean method
-
getFunction
Function<CommandContext,?> getFunction()Get the function- Returns:
- the function
-
getConsumer
Consumer<CommandContext> getConsumer()Get the consumer- Returns:
- the consumer
-
of
-
of
-
of
-