Class EndpointSpec<S extends EndpointSpec<S,F,H>,F extends BeanNameAware & FactoryBean<? extends AbstractEndpoint>,H>    
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,reactor.util.function.Tuple2<F,H>>
  
org.springframework.integration.dsl.EndpointSpec<S,F,H>  
- Type Parameters:
- S- the target- ConsumerEndpointSpecimplementation type.
- F- the target- BeanNameAwareimplementation type.
- H- the target- MessageHandlerimplementation type.
- All Implemented Interfaces:
- DisposableBean,- FactoryBean<reactor.util.function.Tuple2<F,,- H>> - InitializingBean,- Lifecycle,- Phased,- SmartLifecycle,- ComponentsRegistration
- Direct Known Subclasses:
- ConsumerEndpointSpec,- SourcePollingChannelAdapterSpec
public abstract class EndpointSpec<S extends EndpointSpec<S,F,H>,F extends BeanNameAware & FactoryBean<? extends AbstractEndpoint>,H>    
extends IntegrationComponentSpec<S,reactor.util.function.Tuple2<F,H>>
implements ComponentsRegistration  
An 
IntegrationComponentSpec for endpoints.- Since:
- 5.0
- Author:
- Artem Bilan, Gary Russell
- 
Field SummaryFieldsFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpeclogger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidabstract SautoStartup(boolean autoStartup) doGet()Configure the component identifier.protected MessageChannelTry to get aMessageChannelas an input for the providedIntegrationFlowor create one and wrap the provided flow to a new one.protected MessageChannelobtainInputChannelFromFlow(IntegrationFlow subFlow, boolean evaluateInternalBuilder) Try to get aMessageChannelas an input for the providedIntegrationFlowor create one and wrap the provided flow to a new one.abstract Sphase(int phase) poller(Function<PollerFactory, PollerSpec> pollers) poller(PollerSpec pollerMetadataSpec) abstract Spoller(PollerMetadata pollerMetadata) abstract SSpecify the role for the endpoint.Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec_this, afterPropertiesSet, destroy, getId, getObject, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBeanisSingleton
- 
Field Details- 
componentsToRegister
- 
endpointFactoryBeanprotected final F extends BeanNameAware & FactoryBean<? extends AbstractEndpoint> endpointFactoryBean
- 
handler
 
- 
- 
Constructor Details- 
EndpointSpec
 
- 
- 
Method Details- 
idDescription copied from class:IntegrationComponentSpecConfigure the component identifier. Used as thebeanNameto register the bean in the application context for this component.- Overrides:
- idin class- IntegrationComponentSpec<S extends EndpointSpec<S,- F, - H>, - reactor.util.function.Tuple2<F extends BeanNameAware & FactoryBean<? extends AbstractEndpoint>, - H>> 
- Parameters:
- id- the id.
- Returns:
- the spec.
 
- 
poller- Parameters:
- pollers- the pollers
- Returns:
- the endpoint spec.
- See Also:
 
- 
poller- Parameters:
- pollerMetadataSpec- the pollerMetadataSpec
- Returns:
- the endpoint spec.
- See Also:
 
- 
poller- Parameters:
- pollerMetadata- the pollerMetadata
- Returns:
- the endpoint spec.
- See Also:
 
- 
phase- Parameters:
- phase- the phase.
- Returns:
- the endpoint spec.
- See Also:
 
- 
autoStartup- Parameters:
- autoStartup- the autoStartup.
- Returns:
- the endpoint spec
- See Also:
 
- 
roleSpecify the role for the endpoint. Such endpoints can be started/stopped as a group.- Parameters:
- role- the role for this endpoint.
- Returns:
- the endpoint spec
- See Also:
 
- 
getComponentsToRegister- Specified by:
- getComponentsToRegisterin interface- ComponentsRegistration
 
- 
doGet- Overrides:
- doGetin class- IntegrationComponentSpec<S extends EndpointSpec<S,- F, - H>, - reactor.util.function.Tuple2<F extends BeanNameAware & FactoryBean<? extends AbstractEndpoint>, - H>> 
 
- 
assertHandlerprotected void assertHandler()
- 
obtainInputChannelFromFlowTry to get aMessageChannelas an input for the providedIntegrationFlowor create one and wrap the provided flow to a new one.- Parameters:
- subFlow- the- IntegrationFlowto extract input channel.
- Returns:
- the input channel of the flow of create one
- Since:
- 5.0.4
 
- 
obtainInputChannelFromFlowprotected MessageChannel obtainInputChannelFromFlow(IntegrationFlow subFlow, boolean evaluateInternalBuilder) Try to get aMessageChannelas an input for the providedIntegrationFlowor create one and wrap the provided flow to a new one.- Parameters:
- subFlow- the- IntegrationFlowto extract input channel.
- evaluateInternalBuilder- true if an internal- IntegrationFlowDefinitionshould be evaluated to an- IntegrationFlowcomponent or left as a builder in the- componentsToRegisterfor future use-case. For example the builder is used for router configurations to retain beans registration order for parent-child dependencies.
- Returns:
- the input channel of the flow of create one
- Since:
- 5.0.4
 
 
-