public interface StreamListenerSetupMethodOrchestrator
StreamListener setup method.
By default StreamListenerAnnotationBeanPostProcessor will use an internal
implementation of this interface to invoke StreamListenerParameterAdapters and
StreamListenerResultAdapters or handler mappings on the method annotated with
StreamListener.
By providing a different implementation of this interface and registering it as a
Spring Bean in the context, one can override the default invocation strategies used by
the StreamListenerAnnotationBeanPostProcessor. A typical usecase for such
overriding can happen when a downstream
Binder implementation wants to change
the way in which any of the default StreamListener handling needs to be changed in a
custom manner.
When beans of this interface are present in the context, they get priority in the
StreamListenerAnnotationBeanPostProcessor before falling back to the default
implementation.StreamListener,
StreamListenerAnnotationBeanPostProcessor| Modifier and Type | Method and Description |
|---|---|
default Object[] |
adaptAndRetrieveInboundArguments(Method method,
String inboundName,
org.springframework.context.ApplicationContext applicationContext,
StreamListenerParameterAdapter... streamListenerParameterAdapters)
Default implementation for adapting each of the incoming method arguments using an
available
StreamListenerParameterAdapter and provide the adapted collection
of arguments back to the caller. |
void |
orchestrateStreamListenerSetupMethod(StreamListener streamListener,
Method method,
Object bean)
Method that allows custom orchestration on the
StreamListener setup method. |
boolean |
supports(Method method)
Checks the method annotated with
StreamListener to see if this
implementation can successfully orchestrate this method. |
boolean supports(Method method)
StreamListener to see if this
implementation can successfully orchestrate this method.method - annotated with StreamListenervoid orchestrateStreamListenerSetupMethod(StreamListener streamListener, Method method, Object bean)
StreamListener setup method.streamListener - reference to the StreamListener annotation on the
methodmethod - annotated with StreamListenerbean - that contains the StreamListener methoddefault Object[] adaptAndRetrieveInboundArguments(Method method, String inboundName, org.springframework.context.ApplicationContext applicationContext, StreamListenerParameterAdapter... streamListenerParameterAdapters)
StreamListenerParameterAdapter and provide the adapted collection
of arguments back to the caller.method - annotated with StreamListenerinboundName - inbound bindingapplicationContext - spring application contextstreamListenerParameterAdapters - used for adapting the method argumentsCopyright © 2019 Pivotal Software, Inc.. All rights reserved.