Interface IntegrationFlowContext.IntegrationFlowRegistration

All Superinterfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware
Enclosing interface:
IntegrationFlowContext

public static interface IntegrationFlowContext.IntegrationFlowRegistration extends org.springframework.beans.factory.BeanFactoryAware
Since:
5.1
  • Method Details

    • getId

      String getId()
      Return the flow id.
      Returns:
      the id.
    • getIntegrationFlow

      IntegrationFlow getIntegrationFlow()
      Return the flow.
      Returns:
      the flow.
    • getInputChannel

      org.springframework.messaging.MessageChannel getInputChannel()
      Return the flow input channel.
      Returns:
      the channel.
    • getMessagingTemplate

      MessagingTemplate getMessagingTemplate()
      Obtain a MessagingTemplate with its default destination set to the input channel of the IntegrationFlow.

      Any IntegrationFlow bean (not only manually registered) can be used for this method.

      If IntegrationFlow doesn't start with the MessageChannel, the IllegalStateException is thrown.

      Returns:
      the MessagingTemplate instance
    • start

      void start()
      Start the registration.
    • stop

      void stop()
      Stop the registration.
    • destroy

      void destroy()
      Destroy the IntegrationFlow bean (as well as all its dependent beans) and clean up all the local cache for it.