Interface AdvancedCommitPropertiesProvider

All Superinterfaces:
CommitPropertiesProvider
All Known Implementing Classes:
AdvancedCommitPropertiesProvider.EmptyAdvancedCommitPropertiesProvider

public interface AdvancedCommitPropertiesProvider extends CommitPropertiesProvider
This is an extended version of CommitPropertiesProvider.
Both interfaces exist because of backward compatibility reasons.

Choose this extended version of the interface to generate commit properties that might depend on a current method being executed. See AuditedMethodExecutionContext.

It's not recommended to implement both interfaces in your class, if so, Javers merges the results.

Usage
Create a bean in your Spring context, for example:
 
     @Bean
     @ConditionalOnMissingBean
     public AdvancedCommitPropertiesProvider advancedCommitPropertiesProvider() {
         return new MyAdvancedCommitPropertiesProvider();
     }
 
 
Since:
7.5
See Also: