Interface StreamListenerParameterAdapter<A,B>
-
- Type Parameters:
A
- adapter typeB
- binding result type
public interface StreamListenerParameterAdapter<A,B>
Strategy for adapting a method argument type annotated withInput
orOutput
from a binding type (e.g.MessageChannel
) supported by an existing binder. This is a framework extension and is not primarily intended for use by end-users.- Author:
- Marius Bogoevici
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description A
adapt(B bindingTarget, org.springframework.core.MethodParameter parameter)
Adapts the binding target to the argument type.boolean
supports(Class<?> bindingTargetType, org.springframework.core.MethodParameter methodParameter)
Return true if the conversion from the binding target type to the argument type is supported.
-
-
-
Method Detail
-
supports
boolean supports(Class<?> bindingTargetType, org.springframework.core.MethodParameter methodParameter)
Return true if the conversion from the binding target type to the argument type is supported.- Parameters:
bindingTargetType
- the binding target typemethodParameter
- the method parameter for which the conversion is performed- Returns:
- true if the conversion is supported
-
adapt
A adapt(B bindingTarget, org.springframework.core.MethodParameter parameter)
Adapts the binding target to the argument type. The result will be passed as argument to a method annotated withStreamListener
when used for setting up a pipeline.- Parameters:
bindingTarget
- the binding targetparameter
- the method parameter for which the conversion is performed- Returns:
- an instance of the parameter type, which will be passed to the method
-
-