Interface StreamListenerResultAdapter<R,B>
-
- Type Parameters:
R
- stream listener result typeB
- binding target type
- All Known Implementing Classes:
MessageChannelStreamListenerResultAdapter
public interface StreamListenerResultAdapter<R,B>
A strategy for adapting the result of aStreamListener
annotated method to a binding target annotated withOutput
. Used when theStreamListener
annotated method is operating in declarative mode.- Author:
- Marius Bogoevici
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Closeable
adapt(R streamListenerResult, B bindingTarget)
Adapts the result to the binding target.boolean
supports(Class<?> resultType, Class<?> bindingTarget)
Return true if the result type can be converted to the binding target.
-