Class ReactiveAuditingHandler

java.lang.Object
org.springframework.data.auditing.AuditingHandlerSupport
org.springframework.data.auditing.ReactiveAuditingHandler
Direct Known Subclasses:
ReactiveIsNewAwareAuditingHandler

public class ReactiveAuditingHandler extends AuditingHandlerSupport
Auditing handler to mark entity objects created and modified.
Since:
2.4
Author:
Mark Paluch, Christoph Strobl
  • Constructor Details

  • Method Details

    • from

      public static ReactiveAuditingHandler from(MappingContext<?,?> mappingContext)
      Factory method that creates a new ReactiveAuditingHandler for the given MappingContext.
      Parameters:
      mappingContext - must not be null.
      Since:
      3.0
    • setAuditorAware

      public void setAuditorAware(ReactiveAuditorAware<?> auditorAware)
      Setter to inject a ReactiveAuditorAware component to retrieve the current auditor.
      Parameters:
      auditorAware - must not be null.
    • markCreated

      public <T> reactor.core.publisher.Mono<T> markCreated(T source)
      Marks the given object as created.
      Parameters:
      source - must not be null.
    • markModified

      public <T> reactor.core.publisher.Mono<T> markModified(T source)
      Marks the given object as modified.
      Parameters:
      source - must not be null.