public class ReactiveAuditingEntityCallback extends Object implements ReactiveBeforeConvertCallback<Object>, Ordered
EntityCallback to populate auditing related fields on an entity about to be saved.HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
ReactiveAuditingEntityCallback(ObjectFactory<ReactiveIsNewAwareAuditingHandler> auditingHandlerFactory)
Creates a new
ReactiveAuditingEntityCallback using the given ReactiveIsNewAwareAuditingHandler
provided by the given ObjectFactory. |
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder() |
reactor.core.publisher.Mono<Object> |
onBeforeConvert(Object entity,
IndexCoordinates index)
Callback method that will be invoked before an entity is persisted.
|
public ReactiveAuditingEntityCallback(ObjectFactory<ReactiveIsNewAwareAuditingHandler> auditingHandlerFactory)
ReactiveAuditingEntityCallback using the given ReactiveIsNewAwareAuditingHandler
provided by the given ObjectFactory.auditingHandlerFactory - must not be null.public reactor.core.publisher.Mono<Object> onBeforeConvert(Object entity, IndexCoordinates index)
ReactiveBeforeConvertCallbackonBeforeConvert in interface ReactiveBeforeConvertCallback<Object>entity - the entity being convertedindex - must not be null.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.