ca.gc.aafc.auto.MessageQueueNotifierAutoConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dina-base-api Show documentation
Show all versions of dina-base-api Show documentation
Base DINA API package for Java built on SpringBoot and Crnk
The newest version!
package ca.gc.aafc.auto;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import ca.gc.aafc.dina.messaging.MessageQueueNotifier;
import ca.gc.aafc.dina.messaging.producer.DocumentOperationNotificationMessageProducer;
/**
* This class is outside the ComponentScan that is using DinaBaseApiAutoConfiguration base package.
*/
@Configuration
public class MessageQueueNotifierAutoConfiguration {
@ConditionalOnBean(DocumentOperationNotificationMessageProducer.class)
@Bean
public MessageQueueNotifier messageQueueNotifier(
DocumentOperationNotificationMessageProducer messageProducer) {
return new MessageQueueNotifier(messageProducer);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy