Interface CommandRegistration.TargetSpec
- All Known Implementing Classes:
CommandRegistration.DefaultTargetSpec
- Enclosing interface:
- CommandRegistration
public static interface CommandRegistration.TargetSpec
Spec defining a target.
-
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
Register a method target.- Parameters:
bean
- the beanmethod
- the methodparamTypes
- the parameter types- Returns:
- a target spec for chaining
-
method
Register a method target.- Parameters:
bean
- the beanmethod
- the method- Returns:
- a target spec for chaining
-
function
Register a function target.- Parameters:
function
- the function to register- Returns:
- a target spec for chaining
-
consumer
Register a consumer target.- Parameters:
consumer
- the consumer to register- Returns:
- a target spec for chaining
-
and
Return a builder for chaining.- Returns:
- a builder for chaining
-