public final class StandardIntegrationFlowContext extends Object implements IntegrationFlowContext, BeanFactoryAware
IntegrationFlowContext
.Modifier and Type | Class and Description |
---|---|
class |
StandardIntegrationFlowContext.StandardIntegrationFlowRegistrationBuilder
A Builder pattern implementation for the options to register
IntegrationFlow
in the application context. |
IntegrationFlowContext.IntegrationFlowRegistration, IntegrationFlowContext.IntegrationFlowRegistrationBuilder
Modifier and Type | Method and Description |
---|---|
IntegrationFlowContext.IntegrationFlowRegistration |
getRegistrationById(String flowId)
|
Map<String,IntegrationFlowContext.IntegrationFlowRegistration> |
getRegistry()
Provide the state of the mapping of integration flow names to their
IntegrationFlowRegistration instances. |
boolean |
isUseIdAsPrefix(String flowId)
Return true to prefix flow bean names with the flow id and a period.
|
MessagingTemplate |
messagingTemplateFor(String flowId)
Obtain a
MessagingTemplate with its default destination set to the input channel
of the IntegrationFlow for provided flowId . |
StandardIntegrationFlowContext.StandardIntegrationFlowRegistrationBuilder |
registration(IntegrationFlow integrationFlow)
Associate provided
IntegrationFlow with an StandardIntegrationFlowContext.StandardIntegrationFlowRegistrationBuilder
for additional options and farther registration in the application context. |
void |
remove(String flowId)
Destroy an
IntegrationFlow bean (as well as all its dependant beans)
for provided flowId and clean up all the local cache for it. |
void |
setBeanFactory(BeanFactory beanFactory) |
public void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory
in interface BeanFactoryAware
BeansException
public StandardIntegrationFlowContext.StandardIntegrationFlowRegistrationBuilder registration(IntegrationFlow integrationFlow)
IntegrationFlow
with an StandardIntegrationFlowContext.StandardIntegrationFlowRegistrationBuilder
for additional options and farther registration in the application context.registration
in interface IntegrationFlowContext
integrationFlow
- the IntegrationFlow
to registerIntegrationFlow
public boolean isUseIdAsPrefix(String flowId)
IntegrationFlowContext
isUseIdAsPrefix
in interface IntegrationFlowContext
flowId
- the flow id.public IntegrationFlowContext.IntegrationFlowRegistration getRegistrationById(String flowId)
getRegistrationById
in interface IntegrationFlowContext
flowId
- the bean name to obtainid
or null
public void remove(String flowId)
IntegrationFlow
bean (as well as all its dependant beans)
for provided flowId
and clean up all the local cache for it.remove
in interface IntegrationFlowContext
flowId
- the bean name to destroy frompublic MessagingTemplate messagingTemplateFor(String flowId)
MessagingTemplate
with its default destination set to the input channel
of the IntegrationFlow
for provided flowId
.
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.
messagingTemplateFor
in interface IntegrationFlowContext
flowId
- the bean name to obtain the input channel fromMessagingTemplate
instancepublic Map<String,IntegrationFlowContext.IntegrationFlowRegistration> getRegistry()
IntegrationFlowRegistration
instances.getRegistry
in interface IntegrationFlowContext