public static interface IntegrationFlowContext.IntegrationFlowRegistrationBuilder
IntegrationFlow
in the application context.Modifier and Type | Method and Description |
---|---|
IntegrationFlowContext.IntegrationFlowRegistrationBuilder |
addBean(Object bean)
Add an object which will be registered as an
IntegrationFlow dependant bean in the
application context. |
IntegrationFlowContext.IntegrationFlowRegistrationBuilder |
addBean(String name,
Object bean)
Add an object which will be registered as an
IntegrationFlow dependant bean in the
application context. |
IntegrationFlowContext.IntegrationFlowRegistrationBuilder |
autoStartup(boolean autoStartup)
The
boolean flag to indication if an IntegrationFlow must be started
automatically after registration. |
IntegrationFlowContext.IntegrationFlowRegistrationBuilder |
id(String id)
Specify an
id for the IntegrationFlow to register. |
IntegrationFlowContext.IntegrationFlowRegistration |
register()
Register an
IntegrationFlow and all the dependant and support components
in the application context and return an associated IntegrationFlowContext.IntegrationFlowRegistration
control object. |
IntegrationFlowContext.IntegrationFlowRegistrationBuilder |
setSource(Object source)
Set the configuration source
Object for this manual Integration flow definition. |
default IntegrationFlowContext.IntegrationFlowRegistrationBuilder |
useFlowIdAsPrefix()
Invoke this method to prefix bean names in the flow with the (required) flow id
and a period.
|
IntegrationFlowContext.IntegrationFlowRegistrationBuilder id(String id)
id
for the IntegrationFlow
to register.
Must be unique per context.
The registration with this id
must be destroyed before reusing for
a new IntegrationFlow
instance.id
- the id for the IntegrationFlow
to registerIntegrationFlowContext.IntegrationFlowRegistrationBuilder autoStartup(boolean autoStartup)
boolean
flag to indication if an IntegrationFlow
must be started
automatically after registration. Defaults to true
.autoStartup
- start or not the IntegrationFlow
automatically after registration.IntegrationFlowContext.IntegrationFlowRegistrationBuilder addBean(Object bean)
IntegrationFlow
dependant bean in the
application context. Usually it is some support component, which needs an application context.
For example dynamically created connection factories or header mappers for AMQP, JMS, TCP etc.bean
- an additional arbitrary bean to register into the application context.IntegrationFlowContext.IntegrationFlowRegistrationBuilder addBean(String name, Object bean)
IntegrationFlow
dependant bean in the
application context. Usually it is some support component, which needs an application context.
For example dynamically created connection factories or header mappers for AMQP, JMS, TCP etc.name
- the name for the bean to register.bean
- an additional arbitrary bean to register into the application context.IntegrationFlowContext.IntegrationFlowRegistrationBuilder setSource(Object source)
Object
for this manual Integration flow definition.
Can be any arbitrary object which could easily lead to a source code for the flow when
a messaging exception happens at runtime.source
- the configuration source representation.default IntegrationFlowContext.IntegrationFlowRegistrationBuilder useFlowIdAsPrefix()
id(String)
IntegrationFlowContext.IntegrationFlowRegistration register()
IntegrationFlow
and all the dependant and support components
in the application context and return an associated IntegrationFlowContext.IntegrationFlowRegistration
control object.IntegrationFlowContext.IntegrationFlowRegistration
instance.