public class AuditingHandler extends AuditingHandlerSupport implements InitializingBean
| Constructor and Description |
|---|
AuditingHandler(MappingContext<? extends PersistentEntity<?,?>,? extends PersistentProperty<?>> mappingContext)
Deprecated.
use
AuditingHandler(PersistentEntities) instead. |
AuditingHandler(PersistentEntities entities)
Creates a new
AuditableBeanWrapper using the given PersistentEntities when looking up auditing
metadata via reflection. |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
<T> T |
markCreated(T source)
Marks the given object as created.
|
<T> T |
markModified(T source)
Marks the given object as modified.
|
void |
setAuditorAware(AuditorAware<?> auditorAware)
Setter to inject a
AuditorAware component to retrieve the current auditor. |
isAuditable, setDateTimeForNow, setDateTimeProvider, setModifyOnCreation@Deprecated public AuditingHandler(MappingContext<? extends PersistentEntity<?,?>,? extends PersistentProperty<?>> mappingContext)
AuditingHandler(PersistentEntities) instead.AuditableBeanWrapper using the given MappingContext when looking up auditing metadata
via reflection.mappingContext - must not be null.public AuditingHandler(PersistentEntities entities)
AuditableBeanWrapper using the given PersistentEntities when looking up auditing
metadata via reflection.entities - must not be null.public void setAuditorAware(AuditorAware<?> auditorAware)
AuditorAware component to retrieve the current auditor.auditorAware - must not be null.public <T> T markCreated(T source)
source - public <T> T markModified(T source)
source - public void afterPropertiesSet()
afterPropertiesSet in interface InitializingBeanCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.