Class StandardIntegrationFlowContext
java.lang.Object
org.springframework.integration.dsl.context.StandardIntegrationFlowContext
- All Implemented Interfaces:
- Aware,- BeanFactoryAware,- IntegrationFlowContext
public final class StandardIntegrationFlowContext
extends Object
implements IntegrationFlowContext, BeanFactoryAware
Standard implementation of 
IntegrationFlowContext.- Since:
- 5.1
- Author:
- Artem Bilan, Gary Russell, Alexander Shaklein, Artem Vozhdayenko
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionfinal classA Builder pattern implementation for the options to registerIntegrationFlowin the application context.Nested classes/interfaces inherited from interface org.springframework.integration.dsl.context.IntegrationFlowContextIntegrationFlowContext.IntegrationFlowRegistration, IntegrationFlowContext.IntegrationFlowRegistrationBuilder
- 
Method SummaryModifier and TypeMethodDescriptiongetRegistrationById(String flowId) Obtain anIntegrationFlowContext.IntegrationFlowRegistrationfor theIntegrationFlowassociated with the providedflowId.Provide the state of the mapping of integration flow names to theirIntegrationFlowContext.IntegrationFlowRegistrationinstances.booleanisUseIdAsPrefix(String flowId) Return true to prefix flow bean names with the flow id and a period.messagingTemplateFor(String flowId) Obtain aMessagingTemplatewith its default destination set to the input channel of theIntegrationFlowfor providedflowId.registration(IntegrationFlow integrationFlow) Associate providedIntegrationFlowwith anStandardIntegrationFlowContext.StandardIntegrationFlowRegistrationBuilderfor additional options and farther registration in the application context.voidDestroy anIntegrationFlowbean (as well as all its dependant beans) for providedflowIdand clean up all the local cache for it.voidsetBeanFactory(BeanFactory beanFactory) 
- 
Method Details- 
setBeanFactory- Specified by:
- setBeanFactoryin interface- BeanFactoryAware
- Throws:
- BeansException
 
- 
registrationpublic StandardIntegrationFlowContext.StandardIntegrationFlowRegistrationBuilder registration(IntegrationFlow integrationFlow) Associate providedIntegrationFlowwith anStandardIntegrationFlowContext.StandardIntegrationFlowRegistrationBuilderfor additional options and farther registration in the application context.- Specified by:
- registrationin interface- IntegrationFlowContext
- Parameters:
- integrationFlow- the- IntegrationFlowto register
- Returns:
- the IntegrationFlowRegistrationBuilder associated with the provided IntegrationFlow
 
- 
isUseIdAsPrefixDescription copied from interface:IntegrationFlowContextReturn true to prefix flow bean names with the flow id and a period.- Specified by:
- isUseIdAsPrefixin interface- IntegrationFlowContext
- Parameters:
- flowId- the flow id.
- Returns:
- true to use as a prefix.
 
- 
getRegistrationById@Nullable public IntegrationFlowContext.IntegrationFlowRegistration getRegistrationById(String flowId) Obtain anIntegrationFlowContext.IntegrationFlowRegistrationfor theIntegrationFlowassociated with the providedflowId.- Specified by:
- getRegistrationByIdin interface- IntegrationFlowContext
- Parameters:
- flowId- the bean name to obtain
- Returns:
- the IntegrationFlowRegistration for provided idornull
 
- 
removeDestroy anIntegrationFlowbean (as well as all its dependant beans) for providedflowIdand clean up all the local cache for it.- Specified by:
- removein interface- IntegrationFlowContext
- Parameters:
- flowId- the bean name to destroy from
 
- 
messagingTemplateForObtain aMessagingTemplatewith its default destination set to the input channel of theIntegrationFlowfor providedflowId.Any IntegrationFlowbean (not only manually registered) can be used for this method.If IntegrationFlowdoesn't start with theMessageChannel, theIllegalStateExceptionis thrown.- Specified by:
- messagingTemplateForin interface- IntegrationFlowContext
- Parameters:
- flowId- the bean name to obtain the input channel from
- Returns:
- the MessagingTemplateinstance
 
- 
getRegistryProvide the state of the mapping of integration flow names to theirIntegrationFlowContext.IntegrationFlowRegistrationinstances.- Specified by:
- getRegistryin interface- IntegrationFlowContext
- Returns:
- the registry of flow ids and their registration.
 
 
-