public class IsNewAwareAuditingHandler extends AuditingHandler
AuditingHandler extension that uses an IsNewStrategyFactory to expose a generic
markAudited(Object) method that will route calls to AuditingHandler.markCreated(Object) or
AuditingHandler.markModified(Object) based on the IsNewStrategy determined from the factory.| Constructor and Description |
|---|
IsNewAwareAuditingHandler(IsNewStrategyFactory isNewStrategyFactory)
Creates a new
IsNewAwareAuditingHandler using the given IsNewStrategyFactory. |
| Modifier and Type | Method and Description |
|---|---|
void |
markAudited(Object object)
Marks the given object created or modified based on the
IsNewStrategy returned by the
IsNewStrategyFactory configured. |
afterPropertiesSet, markCreated, markModified, setAuditorAware, setDateTimeForNow, setDateTimeProvider, setModifyOnCreationpublic IsNewAwareAuditingHandler(IsNewStrategyFactory isNewStrategyFactory)
IsNewAwareAuditingHandler using the given IsNewStrategyFactory.isNewStrategyFactory - must not be null.public void markAudited(Object object)
IsNewStrategy returned by the
IsNewStrategyFactory configured. Will rout the calls to AuditingHandler.markCreated(Object) and
AuditingHandler.markModified(Object) accordingly.object - Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.