All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.otto.synapse.configuration.MessageLogReceiverEndpointAutoConfiguration Maven / Gradle / Ivy

Go to download

A library used at otto.de to implement Spring Boot based event-sourcing microservices.

There is a newer version: 0.33.1
Show newest version
package de.otto.synapse.configuration;

import de.otto.synapse.annotation.MessageLogConsumerBeanPostProcessor;
import de.otto.synapse.endpoint.receiver.MessageLogConsumerContainer;
import de.otto.synapse.endpoint.receiver.MessageLogReceiverEndpoint;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.Role;

import java.util.List;

import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.beans.factory.config.BeanDefinition.ROLE_INFRASTRUCTURE;

@Import(SynapseAutoConfiguration.class)
@EnableConfigurationProperties(SynapseProperties.class)
public class MessageLogReceiverEndpointAutoConfiguration {

    private static final Logger LOG = getLogger(MessageLogReceiverEndpointAutoConfiguration.class);

    @Bean
    @Role(ROLE_INFRASTRUCTURE)
    public MessageLogConsumerBeanPostProcessor messageLogConsumerAnnotationBeanPostProcessor() {
        return new MessageLogConsumerBeanPostProcessor();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy