Package com.hack23.cia.service.data.impl
Class AuditableAspectConfiguration
- java.lang.Object
-
- com.hack23.cia.service.data.impl.AuditableAspectConfiguration
-
@Configuration public class AuditableAspectConfiguration extends java.lang.Object
The Class AuditableAspectConfiguration.
-
-
Constructor Summary
Constructors Constructor Description AuditableAspectConfiguration()
Instantiates a new auditable aspect configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.javers.spring.auditable.AuthorProvider
authorProvider()
Author provider.org.javers.spring.auditable.CommitPropertiesProvider
commitPropertiesProvider()
Commit properties provider.org.javers.core.Javers
getJavers(org.springframework.transaction.PlatformTransactionManager txManager)
Gets the javers.org.javers.spring.auditable.aspect.JaversAuditableAspect
javersAuditableAspect(org.javers.core.Javers javers, org.javers.spring.auditable.AuthorProvider authorProvider, org.javers.spring.auditable.CommitPropertiesProvider commitPropertiesProvider)
Javers auditable aspect.
-
-
-
Method Detail
-
getJavers
@Bean public org.javers.core.Javers getJavers(org.springframework.transaction.PlatformTransactionManager txManager)
Gets the javers.- Parameters:
txManager
- the tx manager- Returns:
- the javers
-
javersAuditableAspect
@Bean public org.javers.spring.auditable.aspect.JaversAuditableAspect javersAuditableAspect(org.javers.core.Javers javers, org.javers.spring.auditable.AuthorProvider authorProvider, org.javers.spring.auditable.CommitPropertiesProvider commitPropertiesProvider)
Javers auditable aspect.- Parameters:
javers
- the javersauthorProvider
- the author providercommitPropertiesProvider
- the commit properties provider- Returns:
- the javers auditable aspect
-
authorProvider
@Bean public org.javers.spring.auditable.AuthorProvider authorProvider()
Author provider.- Returns:
- the author provider
-
commitPropertiesProvider
@Bean public org.javers.spring.auditable.CommitPropertiesProvider commitPropertiesProvider()
Commit properties provider.- Returns:
- the commit properties provider
-
-