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 Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompositeAuditor(Collection<Auditor> auditors) eventAuditor(pl.allegro.tech.hermes.management.config.AuditProperties auditProperties, org.springframework.web.client.RestTemplate eventAuditorRestTemplate, com.fasterxml.jackson.databind.ObjectMapper objectMapper) org.springframework.web.client.RestTemplateloggingAuditor(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Constructor Details
-
AuditConfiguration
public AuditConfiguration()
-
-
Method Details
-
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
-