|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.eventhandling.amqp.spring.ListenerContainerFactory
public class ListenerContainerFactory
Factory for SimpleMessageListenerContainer beans. All properties available on the SimpleMessageListenerContainer are
available on the factory. When createContainer(SpringAMQPConsumerConfiguration)
is invoked, a new instance
of SimpleMessageListenerContainer
is created and configured with the properties set on this factory. For more
information about the setters in this class and their default values, revert to the documentation of the SimpleMessageListenerContainer
Constructor Summary | |
---|---|
ListenerContainerFactory()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer |
createContainer(SpringAMQPConsumerConfiguration config)
Creates a new SimpleMessageListenerContainer, initialized with the properties set on this factory. |
protected org.springframework.context.ApplicationContext |
getApplicationContext()
Returns the application context in which this bean is defined. |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void |
setConnectionFactory(org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory)
Sets the connection factory to use for the cluster |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListenerContainerFactory()
Method Detail |
---|
public org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer createContainer(SpringAMQPConsumerConfiguration config)
config
- The container-specific configuration for the new container
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
protected org.springframework.context.ApplicationContext getApplicationContext()
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void setConnectionFactory(org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory)
connectionFactory
- the connection factory to setRabbitAccessor.setConnectionFactory(org.springframework.amqp.rabbit.connection.ConnectionFactory)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |