public class ReactiveAuditingHandler extends AuditingHandlerSupport
Constructor and Description |
---|
ReactiveAuditingHandler(PersistentEntities entities)
Creates a new
ReactiveAuditingHandler using the given PersistentEntities when looking up auditing
metadata. |
Modifier and Type | Method and Description |
---|---|
<T> reactor.core.publisher.Mono<T> |
markCreated(T source)
Marks the given object as created.
|
<T> reactor.core.publisher.Mono<T> |
markModified(T source)
Marks the given object as modified.
|
void |
setAuditorAware(ReactiveAuditorAware<?> auditorAware)
Setter to inject a
ReactiveAuditorAware component to retrieve the current auditor. |
isAuditable, setDateTimeForNow, setDateTimeProvider, setModifyOnCreation
public ReactiveAuditingHandler(PersistentEntities entities)
ReactiveAuditingHandler
using the given PersistentEntities
when looking up auditing
metadata.entities
- must not be null.public void setAuditorAware(ReactiveAuditorAware<?> auditorAware)
ReactiveAuditorAware
component to retrieve the current auditor.auditorAware
- must not be null.public <T> reactor.core.publisher.Mono<T> markCreated(T source)
source
- must not be null.public <T> reactor.core.publisher.Mono<T> markModified(T source)
source
- must not be null.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.