de.otto.synapse.edison.SynapseEdisonConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of synapse-edison Show documentation
Show all versions of synapse-edison Show documentation
A library used at otto.de to integrate synapse-core with edison-microservice.
The newest version!
package de.otto.synapse.edison;
import de.otto.synapse.eventsource.EventSource;
import de.otto.synapse.info.MessageReceiverEndpointInfoProvider;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.List;
import java.util.Optional;
@Configuration
public class SynapseEdisonConfiguration {
@Bean
@ConditionalOnMissingBean
public MessageReceiverEndpointInfoProvider messageReceiverEndpointInfoProvider(Optional> optionalEventSources) {
return new MessageReceiverEndpointInfoProvider(optionalEventSources);
}
}