@Configuration @EnableConfigurationProperties(value=SynapseProperties.class) public class SynapseAutoConfiguration extends java.lang.Object
| Constructor and Description |
|---|
SynapseAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
DefaultSenderHeadersInterceptor |
defaultSenderHeadersInterceptor(SynapseProperties synapseProperties)
Configures a
MessageInterceptor that is used to add some default
message headers when messages are sent to a MessageSenderEndpoint. |
MessageInterceptorBeanPostProcessor |
messageInterceptorBeanPostProcessor()
Activate the MessageInterceptorBeanPostProcessor used to pose-process beans having methods annotated as a
MessageInterceptor. |
MessageInterceptorRegistry |
messageInterceptorRegistry(org.springframework.context.ApplicationContext applicationContext) |
com.fasterxml.jackson.databind.ObjectMapper |
objectMapper() |
@Bean public com.fasterxml.jackson.databind.ObjectMapper objectMapper()
@Bean public MessageInterceptorRegistry messageInterceptorRegistry(org.springframework.context.ApplicationContext applicationContext)
@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(prefix="synapse.sender.default-headers",
name="enabled",
havingValue="true",
matchIfMissing=true)
public DefaultSenderHeadersInterceptor defaultSenderHeadersInterceptor(SynapseProperties synapseProperties)
MessageInterceptor that is used to add some default
message headers when messages are sent to a MessageSenderEndpoint.synapseProperties - properties used to configure the interceptor@Bean @Role(value=2) public MessageInterceptorBeanPostProcessor messageInterceptorBeanPostProcessor()
MessageInterceptor.