@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.boot.web.client.RestTemplateBuilder restTemplateBuilder) |
LoggingAuditor |
loggingAuditor(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
@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,
org.springframework.boot.web.client.RestTemplateBuilder restTemplateBuilder)
@Bean @Primary public CompositeAuditor compositeAuditor(java.util.Collection<Auditor> auditors)