@Configuration
@EnableConfigurationProperties(value=pl.allegro.tech.hermes.management.config.AuditProperties.class)
public class AuditConfiguration
extends java.lang.Object
| Constructor and Description |
|---|
AuditConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
CompositeAuditor |
compositeAuditor(java.util.Collection<Auditor> auditors) |
EventAuditor |
eventAuditor(pl.allegro.tech.hermes.management.config.AuditProperties auditProperties,
org.springframework.web.client.RestTemplate eventAuditorRestTemplate) |
org.springframework.web.client.RestTemplate |
eventAuditorRestTemplate() |
LoggingAuditor |
loggingAuditor(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
@Bean(name="eventAuditorRestTemplate") @ConditionalOnMissingBean(name="eventAuditorRestTemplate") public org.springframework.web.client.RestTemplate eventAuditorRestTemplate()
@Bean
@ConditionalOnProperty(prefix="audit",
value="isLoggingAuditEnabled",
havingValue="true")
public LoggingAuditor loggingAuditor(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
@Bean
@ConditionalOnProperty(prefix="audit",
value="isEventAuditEnabled",
havingValue="true")
public EventAuditor eventAuditor(pl.allegro.tech.hermes.management.config.AuditProperties auditProperties,
@Qualifier(value="eventAuditorRestTemplate")
org.springframework.web.client.RestTemplate eventAuditorRestTemplate)
@Bean @Primary public CompositeAuditor compositeAuditor(java.util.Collection<Auditor> auditors)