public class IntegrationFlowRegistration
extends java.lang.Object
IntegrationFlowContext.registration(IntegrationFlow) invocation
and provide an API for some useful IntegrationFlow options and its lifecycle.IntegrationFlowContext| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy the
IntegrationFlow bean (as well as all its dependant beans)
and clean up all the local cache for it. |
java.lang.String |
getId() |
org.springframework.messaging.MessageChannel |
getInputChannel() |
IntegrationFlow |
getIntegrationFlow() |
org.springframework.integration.core.MessagingTemplate |
getMessagingTemplate()
Obtain a
MessagingTemplate with its default destination set to the input channel
of the IntegrationFlow. |
void |
start() |
void |
stop() |
public java.lang.String getId()
public IntegrationFlow getIntegrationFlow()
public org.springframework.messaging.MessageChannel getInputChannel()
public org.springframework.integration.core.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 instancepublic void start()
public void stop()
public void destroy()
IntegrationFlow bean (as well as all its dependant beans)
and clean up all the local cache for it.