Class ConsumerEndpointFactoryBean
java.lang.Object
org.springframework.integration.config.ConsumerEndpointFactoryBean
- All Implemented Interfaces:
- Aware,- BeanClassLoaderAware,- BeanFactoryAware,- BeanNameAware,- DisposableBean,- FactoryBean<AbstractEndpoint>,- InitializingBean,- Lifecycle,- Phased,- SmartLifecycle
public class ConsumerEndpointFactoryBean
extends Object
implements FactoryBean<AbstractEndpoint>, BeanFactoryAware, BeanNameAware, BeanClassLoaderAware, InitializingBean, SmartLifecycle, DisposableBean
The 
FactoryBean implementation for AbstractEndpoint population.
 Controls all the necessary properties and lifecycle.
 According the provided MessageChannel implementation populates
 a PollingConsumer for the PollableChannel,
 an EventDrivenConsumer for the SubscribableChannel
 and ReactiveStreamsConsumer for all other channel implementations.- Author:
- Mark Fisher, Oleg Zhurakousky, Josh Long, Gary Russell, Artem Bilan
- 
Field SummaryFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoiddestroy()Class<?>intgetPhase()booleanbooleanvoidsetAdviceChain(List<Advice> adviceChain) voidsetAutoStartup(Boolean autoStartup) voidsetBeanClassLoader(ClassLoader classLoader) voidsetBeanFactory(BeanFactory beanFactory) voidsetBeanName(String beanName) voidsetChannelResolver(DestinationResolver<MessageChannel> channelResolver) Specify theDestinationResolverstrategy to use.voidsetHandler(Object handler) voidsetInputChannel(MessageChannel inputChannel) voidsetInputChannelName(String inputChannelName) voidsetPhase(int phase) voidsetPollerMetadata(PollerMetadata pollerMetadata) voidsetReactiveCustomizer(Function<? super reactor.core.publisher.Flux<Message<?>>, ? extends org.reactivestreams.Publisher<Message<?>>> reactiveCustomizer) voidvoidsetTaskScheduler(TaskScheduler taskScheduler) voidstart()voidstop()voidMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBeanisSingleton
- 
Constructor Details- 
ConsumerEndpointFactoryBeanpublic ConsumerEndpointFactoryBean()
 
- 
- 
Method Details- 
setHandler
- 
getHandler
- 
setInputChannel
- 
setInputChannelName
- 
setPollerMetadata
- 
setReactiveCustomizer
- 
setChannelResolverSpecify theDestinationResolverstrategy to use. The default is a BeanFactoryChannelResolver.- Parameters:
- channelResolver- The channel resolver.
- Since:
- 4.1.3
 
- 
setBeanClassLoader- Specified by:
- setBeanClassLoaderin interface- BeanClassLoaderAware
 
- 
setAutoStartup
- 
setPhasepublic void setPhase(int phase) 
- 
setRole
- 
setBeanName- Specified by:
- setBeanNamein interface- BeanNameAware
 
- 
setBeanFactory- Specified by:
- setBeanFactoryin interface- BeanFactoryAware
 
- 
setAdviceChain
- 
setTaskScheduler
- 
afterPropertiesSetpublic void afterPropertiesSet()- Specified by:
- afterPropertiesSetin interface- InitializingBean
 
- 
getObject- Specified by:
- getObjectin interface- FactoryBean<AbstractEndpoint>
 
- 
getObjectType- Specified by:
- getObjectTypein interface- FactoryBean<AbstractEndpoint>
 
- 
isAutoStartuppublic boolean isAutoStartup()- Specified by:
- isAutoStartupin interface- SmartLifecycle
 
- 
getPhasepublic int getPhase()- Specified by:
- getPhasein interface- Phased
- Specified by:
- getPhasein interface- SmartLifecycle
 
- 
isRunningpublic boolean isRunning()
- 
startpublic void start()
- 
stoppublic void stop()
- 
stop- Specified by:
- stopin interface- SmartLifecycle
 
- 
destroypublic void destroy()- Specified by:
- destroyin interface- DisposableBean
 
 
-