Interface StreamListenerSetupMethodOrchestrator

    • Method Detail

      • supports

        boolean supports​(Method method)
        Checks the method annotated with StreamListener to see if this implementation can successfully orchestrate this method.
        Parameters:
        method - annotated with StreamListener
        Returns:
        true if this implementation can orchestrate this method, false otherwise
      • orchestrateStreamListenerSetupMethod

        void orchestrateStreamListenerSetupMethod​(StreamListener streamListener,
                                                  Method method,
                                                  Object bean)
        Method that allows custom orchestration on the StreamListener setup method.
        Parameters:
        streamListener - reference to the StreamListener annotation on the method
        method - annotated with StreamListener
        bean - that contains the StreamListener method
      • adaptAndRetrieveInboundArguments

        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.
        Parameters:
        method - annotated with StreamListener
        inboundName - inbound binding
        applicationContext - spring application context
        streamListenerParameterAdapters - used for adapting the method arguments
        Returns:
        adapted incoming arguments