Package de.otto.synapse.configuration
Class SynapseAutoConfiguration
- java.lang.Object
-
- de.otto.synapse.configuration.SynapseAutoConfiguration
-
@Configuration @EnableConfigurationProperties(SynapseProperties.class) public class SynapseAutoConfiguration extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SynapseAutoConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultReceiverHeadersInterceptordefaultReceiverHeadersInterceptor(SynapseProperties synapseProperties)Configures aMessageInterceptorthat is used to add some default message headers when messages are received by aMessageReceiverEndpoint.DefaultSenderHeadersInterceptordefaultSenderHeadersInterceptor(SynapseProperties synapseProperties)Configures aMessageInterceptorthat is used to add some default message headers when messages are sent to aMessageSenderEndpoint.JournalRegistryjournals(java.util.List<Journal> journals, MessageInterceptorRegistry registry)MessageInterceptorBeanPostProcessormessageInterceptorBeanPostProcessor()Activate the MessageInterceptorBeanPostProcessor used to post-process beans having methods annotated as aMessageInterceptor.MessageInterceptorRegistrymessageInterceptorRegistry(org.springframework.context.ApplicationContext applicationContext)com.fasterxml.jackson.databind.ObjectMapperobjectMapper()
-
-
-
Method Detail
-
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 aMessageInterceptorthat is used to add some default message headers when messages are sent to aMessageSenderEndpoint.- 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 aMessageInterceptorthat is used to add some default message headers when messages are received by aMessageReceiverEndpoint.- 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 aMessageInterceptor.- Returns:
- MessageInterceptorBeanPostProcessor
-
-