类 RedisConcurrentListenerContainerFactory<K,V>
- 所有已实现的接口:
ConcurrentListenerContainerFactory<RedisConcurrentMessageListenerContainer<K,,V>, MethodRedisListenerEndpoint, K, V> ListenerContainerFactory<RedisConcurrentMessageListenerContainer<K,,V>, MethodRedisListenerEndpoint> org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationEventPublisherAware
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidInvoked by the containingBeanFactoryafter it has set all bean properties and satisfiedBeanFactoryAware,ApplicationContextAwareetc.createContainer(String... topics) createContainer(Pattern topicPattern) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) Set the ApplicationContext that this object runs in.voidsetApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) Set the ApplicationEventPublisher that this object runs in.voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) Callback that supplies the owning factory to a bean instance.
-
字段详细资料
-
beanFactory
protected org.springframework.beans.factory.BeanFactory beanFactory
-
-
构造器详细资料
-
RedisConcurrentListenerContainerFactory
public RedisConcurrentListenerContainerFactory()
-
-
方法详细资料
-
createListenerContainer
public RedisConcurrentMessageListenerContainer<K,V> createListenerContainer(MethodRedisListenerEndpoint endpoint) - 指定者:
createListenerContainer在接口中ListenerContainerFactory<K,V>
-
createContainer
- 指定者:
createContainer在接口中ListenerContainerFactory<K,V>
-
createContainer
- 指定者:
createContainer在接口中ListenerContainerFactory<K,V>
-
afterPropertiesSet
Invoked by the containingBeanFactoryafter it has set all bean properties and satisfiedBeanFactoryAware,ApplicationContextAwareetc.This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.
- 指定者:
afterPropertiesSet在接口中org.springframework.beans.factory.InitializingBean- 抛出:
Exception- in the event of misconfiguration (such as failure to set an essential property) or if initialization fails for any other reason
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException Set the ApplicationContext that this object runs in. Normally this call will be used to initialize the object.Invoked after population of normal bean properties but before an init callback such as
InitializingBean.afterPropertiesSet()or a custom init-method. Invoked afterResourceLoaderAware.setResourceLoader(org.springframework.core.io.ResourceLoader),ApplicationEventPublisherAware.setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher)andMessageSourceAware, if applicable.- 指定者:
setApplicationContext在接口中org.springframework.context.ApplicationContextAware- 参数:
applicationContext- the ApplicationContext object to be used by this object- 抛出:
org.springframework.context.ApplicationContextException- in case of context initialization errorsorg.springframework.beans.BeansException- if thrown by application context methods- 另请参阅:
-
BeanInitializationException
-
setApplicationEventPublisher
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) Set the ApplicationEventPublisher that this object runs in.Invoked after population of normal bean properties but before an init callback like InitializingBean's afterPropertiesSet or a custom init-method. Invoked before ApplicationContextAware's setApplicationContext.
- 指定者:
setApplicationEventPublisher在接口中org.springframework.context.ApplicationEventPublisherAware- 参数:
applicationEventPublisher- event publisher to be used by this object
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException Callback that supplies the owning factory to a bean instance.Invoked after the population of normal bean properties but before an initialization callback such as
InitializingBean.afterPropertiesSet()or a custom init-method.- 指定者:
setBeanFactory在接口中org.springframework.beans.factory.BeanFactoryAware- 参数:
beanFactory- owning BeanFactory (nevernull). The bean can immediately call methods on the factory.- 抛出:
org.springframework.beans.BeansException- in case of initialization errors- 另请参阅:
-
BeanInitializationException
-