Interface IntegrationFlowContext.IntegrationFlowRegistration
- All Superinterfaces:
Aware,BeanFactoryAware
- Enclosing interface:
- IntegrationFlowContext
public static interface IntegrationFlowContext.IntegrationFlowRegistration extends BeanFactoryAware
- Since:
- 5.1
- Author:
- Gary Russell
-
Method Summary
Modifier and Type Method Description voiddestroy()Destroy theIntegrationFlowbean (as well as all its dependent beans) and clean up all the local cache for it.StringgetId()Return the flow id.MessageChannelgetInputChannel()Return the flow input channel.IntegrationFlowgetIntegrationFlow()Return the flow.MessagingTemplategetMessagingTemplate()Obtain aMessagingTemplatewith its default destination set to the input channel of theIntegrationFlow.voidstart()Start the registration.voidstop()Stop the registration.
-
Method Details
-
getId
String getId()Return the flow id.- Returns:
- the id.
-
getIntegrationFlow
IntegrationFlow getIntegrationFlow()Return the flow.- Returns:
- the flow.
-
getInputChannel
MessageChannel getInputChannel()Return the flow input channel.- Returns:
- the channel.
-
getMessagingTemplate
MessagingTemplate getMessagingTemplate()Obtain aMessagingTemplatewith its default destination set to the input channel of theIntegrationFlow.Any
IntegrationFlowbean (not only manually registered) can be used for this method.If
IntegrationFlowdoesn't start with theMessageChannel, theIllegalStateExceptionis thrown.- Returns:
- the
MessagingTemplateinstance
-
start
void start()Start the registration. -
stop
void stop()Stop the registration. -
destroy
void destroy()Destroy theIntegrationFlowbean (as well as all its dependent beans) and clean up all the local cache for it.
-