Interface CommitPropertiesProvider

All Known Subinterfaces:
AdvancedCommitPropertiesProvider
All Known Implementing Classes:
AdvancedCommitPropertiesProvider.EmptyAdvancedCommitPropertiesProvider, EmptyPropertiesProvider

public interface CommitPropertiesProvider
This interface gives possibility to provide commit properties for Javers.commit(String, Object, Map) and Javers.commitShallowDelete(String, Object, Map) when called by the JaversSpringDataAuditable auto-audit aspect.

Implementation has to be thread-safe.

Usage
Create a bean in your Spring context, for example:
 
     @Bean
     @ConditionalOnMissingBean
     public CommitPropertiesProvider commitPropertiesProvider() {
         return new MyCommitPropertiesProvider();
     }
 
 
See the extended version of this interface — AdvancedCommitPropertiesProvider, which works similarly, but additionally gives you access to an audited method execution context.