public class MappingAuditableBeanWrapperFactory extends Object
AuditableBeanWrapperFactory
that will create am AuditableBeanWrapper
using mapping information
obtained from a MappingContext
to detect auditing configuration and eventually invoking setting the auditing
values.Constructor and Description |
---|
MappingAuditableBeanWrapperFactory(PersistentEntities entities)
Creates a new
MappingAuditableBeanWrapperFactory using the given PersistentEntities . |
Modifier and Type | Method and Description |
---|---|
<T> Optional<AuditableBeanWrapper<T>> |
getBeanWrapperFor(T source)
Returns an
AuditableBeanWrapper if the given object is capable of being equipped with auditing information. |
public MappingAuditableBeanWrapperFactory(PersistentEntities entities)
MappingAuditableBeanWrapperFactory
using the given PersistentEntities
.entities
- must not be null.public <T> Optional<AuditableBeanWrapper<T>> getBeanWrapperFor(T source)
AuditableBeanWrapper
if the given object is capable of being equipped with auditing information.getBeanWrapperFor
in interface AuditableBeanWrapperFactory
source
- the auditing candidate.AuditableBeanWrapper
for the given source object if it's eligible for auditing.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.