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