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 |
---|---|
Optional<AuditableBeanWrapper> |
getBeanWrapperFor(Object 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 Optional<AuditableBeanWrapper> getBeanWrapperFor(Object 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-2016–2017 Pivotal Software, Inc.. All rights reserved.