Class AuditableAspectConfiguration


  • @Configuration
    public class AuditableAspectConfiguration
    extends java.lang.Object
    The Class AuditableAspectConfiguration.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AuditableAspectConfiguration

        public AuditableAspectConfiguration()
        Instantiates a new auditable aspect configuration.
    • 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 javers
        authorProvider - the author provider
        commitPropertiesProvider - 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