Spring Data Core

org.springframework.data.auditing.config
Class AnnotationAuditingConfigurationSupport

java.lang.Object
  extended by org.springframework.data.auditing.config.AnnotationAuditingConfigurationSupport
All Implemented Interfaces:
AnnotationAuditingConfiguration

public class AnnotationAuditingConfigurationSupport
extends Object
implements AnnotationAuditingConfiguration

Default implementation for AnnotationAuditingConfiguration.

Author:
Ranie Jade Ramiso, Thomas Darimont, Oliver Gierke

Constructor Summary
AnnotationAuditingConfigurationSupport(AnnotationMetadata metadata, Class<? extends Annotation> annotation)
          Creates a new instance of AnnotationAuditingConfigurationSupport for the given AnnotationMetadata and annotation type.
 
Method Summary
 String getAuditorAwareRef()
          Returns the bean name of the AuditorAware instance to be used..
 String getDateTimeProviderRef()
          Returns the bean name of the DateTimeProvider to be used.
 boolean isModifyOnCreate()
          Returns whether the entity shall be marked as modified on creation.
 boolean isSetDates()
          Returns whether the creation and modification dates shall be set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationAuditingConfigurationSupport

public AnnotationAuditingConfigurationSupport(AnnotationMetadata metadata,
                                              Class<? extends Annotation> annotation)
Creates a new instance of AnnotationAuditingConfigurationSupport for the given AnnotationMetadata and annotation type.

Parameters:
metadata - must not be null.
annotation - must not be null.
Method Detail

getAuditorAwareRef

public String getAuditorAwareRef()
Description copied from interface: AnnotationAuditingConfiguration
Returns the bean name of the AuditorAware instance to be used..

Specified by:
getAuditorAwareRef in interface AnnotationAuditingConfiguration
Returns:

isSetDates

public boolean isSetDates()
Description copied from interface: AnnotationAuditingConfiguration
Returns whether the creation and modification dates shall be set. Defaults to true.

Specified by:
isSetDates in interface AnnotationAuditingConfiguration
Returns:

getDateTimeProviderRef

public String getDateTimeProviderRef()
Description copied from interface: AnnotationAuditingConfiguration
Returns the bean name of the DateTimeProvider to be used.

Specified by:
getDateTimeProviderRef in interface AnnotationAuditingConfiguration
Returns:

isModifyOnCreate

public boolean isModifyOnCreate()
Description copied from interface: AnnotationAuditingConfiguration
Returns whether the entity shall be marked as modified on creation. Defaults to true.

Specified by:
isModifyOnCreate in interface AnnotationAuditingConfiguration
Returns:

Spring Data Core

Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.