Class SynapseAutoConfiguration

java.lang.Object
de.otto.synapse.configuration.SynapseAutoConfiguration

@Configuration
@EnableConfigurationProperties(SynapseProperties.class)
public class SynapseAutoConfiguration
extends java.lang.Object
  • Constructor Details

    • SynapseAutoConfiguration

      public SynapseAutoConfiguration()
  • Method Details

    • objectMapper

      @Bean @ConditionalOnMissingBean public com.fasterxml.jackson.databind.ObjectMapper objectMapper()
    • messageInterceptorRegistry

      @Bean public MessageInterceptorRegistry messageInterceptorRegistry​(org.springframework.context.ApplicationContext applicationContext)
    • journals

      @Bean public JournalRegistry journals​(java.util.List<Journal> journals, MessageInterceptorRegistry registry)
    • defaultSenderHeadersInterceptor

      @Bean @Order(2147483647) @ConditionalOnMissingBean @ConditionalOnProperty(prefix="synapse.sender.default-headers", name="enabled", havingValue="true", matchIfMissing=true) public DefaultSenderHeadersInterceptor defaultSenderHeadersInterceptor​(SynapseProperties synapseProperties)
      Configures a MessageInterceptor that is used to add some default message headers when messages are sent to a MessageSenderEndpoint.
      Parameters:
      synapseProperties - properties used to configure the interceptor
      Returns:
      DefaultSenderHeadersInterceptor
    • defaultReceiverHeadersInterceptor

      @Bean @Order(2147483647) @ConditionalOnMissingBean @ConditionalOnProperty(prefix="synapse.receiver.default-headers", name="enabled", havingValue="true", matchIfMissing=true) public DefaultReceiverHeadersInterceptor defaultReceiverHeadersInterceptor​(SynapseProperties synapseProperties)
      Configures a MessageInterceptor that is used to add some default message headers when messages are received by a MessageReceiverEndpoint.
      Parameters:
      synapseProperties - properties used to configure the interceptor
      Returns:
      DefaultReceiverHeadersInterceptor
    • messageInterceptorBeanPostProcessor

      @Bean @Role(2) public MessageInterceptorBeanPostProcessor messageInterceptorBeanPostProcessor()
      Activate the MessageInterceptorBeanPostProcessor used to post-process beans having methods annotated as a MessageInterceptor.
      Returns:
      MessageInterceptorBeanPostProcessor