Package de.otto.synapse.configuration
Class SynapseAutoConfiguration
java.lang.Object
de.otto.synapse.configuration.SynapseAutoConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondefaultReceiverHeadersInterceptor(SynapseProperties synapseProperties) Configures aMessageInterceptorthat is used to add some default message headers when messages are received by aMessageReceiverEndpoint.defaultSenderHeadersInterceptor(SynapseProperties synapseProperties) Configures aMessageInterceptorthat is used to add some default message headers when messages are sent to aMessageSenderEndpoint.journals(List<Journal> journals, MessageInterceptorRegistry registry) Activate the MessageInterceptorBeanPostProcessor used to post-process beans having methods annotated as aMessageInterceptor.messageInterceptorRegistry(org.springframework.context.ApplicationContext applicationContext) com.fasterxml.jackson.databind.ObjectMappersynapseProperties(String defaultName)
-
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
-
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
Activate the MessageInterceptorBeanPostProcessor used to post-process beans having methods annotated as aMessageInterceptor.- Returns:
- MessageInterceptorBeanPostProcessor
-