public static interface IntegrationFlowContext.IntegrationFlowRegistration extends BeanFactoryAware
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy the
IntegrationFlow bean (as well as all its dependent beans)
and clean up all the local cache for it. |
String |
getId()
Return the flow id.
|
MessageChannel |
getInputChannel()
Return the flow input channel.
|
IntegrationFlow |
getIntegrationFlow()
Return the flow.
|
MessagingTemplate |
getMessagingTemplate()
Obtain a
MessagingTemplate with its default destination set to the input channel
of the IntegrationFlow. |
void |
setId(String id)
Set the flow id.
|
void |
setIntegrationFlow(IntegrationFlow integrationFlow)
Set the integration flow.
|
void |
setIntegrationFlowContext(IntegrationFlowContext integrationFlowContext)
Set the flow context.
|
void |
start()
Start the registration.
|
void |
stop()
Stop the registration.
|
setBeanFactoryString getId()
void setId(String id)
id - the id.IntegrationFlow getIntegrationFlow()
void setIntegrationFlow(IntegrationFlow integrationFlow)
integrationFlow - the flow.MessageChannel getInputChannel()
void setIntegrationFlowContext(IntegrationFlowContext integrationFlowContext)
integrationFlowContext - the context.MessagingTemplate getMessagingTemplate()
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.
MessagingTemplate instancevoid start()
void stop()
void destroy()
IntegrationFlow bean (as well as all its dependent beans)
and clean up all the local cache for it.