public class RelationalAuditingEventListener extends Object implements org.springframework.context.ApplicationListener<BeforeSaveEvent>
An instance of this class gets registered when you apply EnableJdbcAuditing
to your Spring config.
EnableJdbcAuditing
Constructor and Description |
---|
RelationalAuditingEventListener(org.springframework.data.auditing.IsNewAwareAuditingHandler handler) |
Modifier and Type | Method and Description |
---|---|
void |
onApplicationEvent(BeforeSaveEvent event) |
public RelationalAuditingEventListener(org.springframework.data.auditing.IsNewAwareAuditingHandler handler)
public void onApplicationEvent(BeforeSaveEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<BeforeSaveEvent>
event
- a notification event for indicating before saveCopyright © 2017–2018 Pivotal Software, Inc.. All rights reserved.