Class SynapseAutoConfiguration

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

@Configuration public class SynapseAutoConfiguration extends Object
  • Constructor Details

    • SynapseAutoConfiguration

      public SynapseAutoConfiguration()
  • Method Details

    • objectMapper

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

      @Bean @ConfigurationProperties(prefix="synapse") public SynapseProperties synapseProperties(@Value("${spring.application.name:Synapse}") String defaultName)
    • messageInterceptorRegistry

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

      @Bean public JournalRegistry journals(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