Interface IntegrationFlowContext.IntegrationFlowRegistration
- All Superinterfaces:
Aware
,BeanFactoryAware
- Enclosing interface:
- IntegrationFlowContext
- Since:
- 5.1
- Author:
- Gary Russell
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Destroy theIntegrationFlow
bean (as well as all its dependent beans) and clean up all the local cache for it.getId()
Return the flow id.Return the flow input channel.Return the flow.Obtain aMessagingTemplate
with its default destination set to the input channel of theIntegrationFlow
.void
start()
Start the registration.void
stop()
Stop the registration.Methods inherited from interface org.springframework.beans.factory.BeanFactoryAware
setBeanFactory
-
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 aMessagingTemplate
with its default destination set to the input channel of theIntegrationFlow
.Any
IntegrationFlow
bean (not only manually registered) can be used for this method.If
IntegrationFlow
doesn't start with theMessageChannel
, theIllegalStateException
is thrown.- Returns:
- the
MessagingTemplate
instance
-
start
void start()Start the registration. -
stop
void stop()Stop the registration. -
destroy
void destroy()Destroy theIntegrationFlow
bean (as well as all its dependent beans) and clean up all the local cache for it.
-