Hello
When I use multirabbit library I want to set errorHandler to SimpleRabbitListenerContainerFactory, but, as I can see in sources (MultiRabbitAutoConfiguration), there always creating SimpleRabbitListenerContainerFactory with ConnectionFactory and I can not modify that containerFactory in any way:
private SimpleRabbitListenerContainerFactory newContainerFactory(final ConnectionFactory connectionFactory) {
final SimpleRabbitListenerContainerFactory containerFactory = new SimpleRabbitListenerContainerFactory();
containerFactory.setConnectionFactory(connectionFactory);
return containerFactory;
}
Is it possible add some customizers or something like this, where I will be able to modify containerFactory ?
Other proposition is create an interface that will create RabbitListenerContainerFactory, input - ConnectionFactory and name from properties. And allow users to provide own implementation.
Example:
public interface RabbitListenerContainerFactoryCreator {
RabbitListenerContainerFactory<?> createRabbitListenerContainerFactory(ConnectionFactory connectionFactory, String key);
}
By default, if no user implementation, use old method - create SimpleRabbitListenerContainerFactory with only ConnectionFactory