public static class CommandRegistration.TargetInfo.DefaultTargetInfo extends Object implements CommandRegistration.TargetInfo
CommandRegistration.TargetInfo.DefaultTargetInfo, CommandRegistration.TargetInfo.TargetType
Constructor and Description |
---|
DefaultTargetInfo(CommandRegistration.TargetInfo.TargetType targetType,
Object bean,
Method method,
Function<CommandContext,?> function,
Consumer<CommandContext> consumer) |
Modifier and Type | Method and Description |
---|---|
Object |
getBean()
Get the bean.
|
Consumer<CommandContext> |
getConsumer()
Get the consumer
|
Function<CommandContext,?> |
getFunction()
Get the function
|
Method |
getMethod()
Get the bean method
|
CommandRegistration.TargetInfo.TargetType |
getTargetType()
Get target type
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
of, of, of
public DefaultTargetInfo(CommandRegistration.TargetInfo.TargetType targetType, Object bean, Method method, Function<CommandContext,?> function, Consumer<CommandContext> consumer)
public CommandRegistration.TargetInfo.TargetType getTargetType()
CommandRegistration.TargetInfo
getTargetType
in interface CommandRegistration.TargetInfo
public Object getBean()
CommandRegistration.TargetInfo
getBean
in interface CommandRegistration.TargetInfo
public Method getMethod()
CommandRegistration.TargetInfo
getMethod
in interface CommandRegistration.TargetInfo
public Function<CommandContext,?> getFunction()
CommandRegistration.TargetInfo
getFunction
in interface CommandRegistration.TargetInfo
public Consumer<CommandContext> getConsumer()
CommandRegistration.TargetInfo
getConsumer
in interface CommandRegistration.TargetInfo
Copyright © 2024. All rights reserved.