public final class StandardIntegrationFlowContext.StandardIntegrationFlowRegistrationBuilder extends Object implements IntegrationFlowContext.IntegrationFlowRegistrationBuilder
IntegrationFlow
in the application context.Modifier and Type | Method and Description |
---|---|
StandardIntegrationFlowContext.StandardIntegrationFlowRegistrationBuilder |
addBean(Object bean)
Add an object which will be registered as an
IntegrationFlow dependant bean in the
application context. |
StandardIntegrationFlowContext.StandardIntegrationFlowRegistrationBuilder |
addBean(String name,
Object bean)
Add an object which will be registered as an
IntegrationFlow dependant bean in the
application context. |
StandardIntegrationFlowContext.StandardIntegrationFlowRegistrationBuilder |
autoStartup(boolean autoStartupToSet)
The
boolean flag to indication if an IntegrationFlow must be
started automatically after registration. |
StandardIntegrationFlowContext.StandardIntegrationFlowRegistrationBuilder |
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 IntegrationFlowRegistration
control object. |
IntegrationFlowContext.IntegrationFlowRegistrationBuilder |
setSource(Object source)
Set the configuration source
Object for this manual Integration flow definition. |
IntegrationFlowContext.IntegrationFlowRegistrationBuilder |
useFlowIdAsPrefix()
Invoke this method to prefix bean names in the flow with the (required) flow id
and a period.
|
public StandardIntegrationFlowContext.StandardIntegrationFlowRegistrationBuilder 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
in interface IntegrationFlowContext.IntegrationFlowRegistrationBuilder
id
- the id for the IntegrationFlow
to registerpublic StandardIntegrationFlowContext.StandardIntegrationFlowRegistrationBuilder autoStartup(boolean autoStartupToSet)
boolean
flag to indication if an IntegrationFlow
must be
started automatically after registration. Defaults to true
.autoStartup
in interface IntegrationFlowContext.IntegrationFlowRegistrationBuilder
autoStartupToSet
- start or not the IntegrationFlow
automatically
after registration.public StandardIntegrationFlowContext.StandardIntegrationFlowRegistrationBuilder 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.addBean
in interface IntegrationFlowContext.IntegrationFlowRegistrationBuilder
bean
- an additional arbitrary bean to register into the application context.public StandardIntegrationFlowContext.StandardIntegrationFlowRegistrationBuilder 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.addBean
in interface IntegrationFlowContext.IntegrationFlowRegistrationBuilder
name
- the name for the bean to register.bean
- an additional arbitrary bean to register into the application context.public IntegrationFlowContext.IntegrationFlowRegistrationBuilder setSource(Object source)
IntegrationFlowContext.IntegrationFlowRegistrationBuilder
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.setSource
in interface IntegrationFlowContext.IntegrationFlowRegistrationBuilder
source
- the configuration source representation.public IntegrationFlowContext.IntegrationFlowRegistrationBuilder useFlowIdAsPrefix()
IntegrationFlowContext.IntegrationFlowRegistrationBuilder
useFlowIdAsPrefix
in interface IntegrationFlowContext.IntegrationFlowRegistrationBuilder
IntegrationFlowContext.IntegrationFlowRegistrationBuilder.id(String)
public IntegrationFlowContext.IntegrationFlowRegistration register()
IntegrationFlow
and all the dependant and support components
in the application context and return an associated IntegrationFlowRegistration
control object.register
in interface IntegrationFlowContext.IntegrationFlowRegistrationBuilder
IntegrationFlowRegistration
instance.