Class AbstractDataGenerator
java.lang.Object
org.alfresco.repo.audit.generator.AbstractDataGenerator
- All Implemented Interfaces:
DataGenerator,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
AuthenticatedPersonDataGenerator,AuthenticatedUserDataGenerator,SystemTimeDataGenerator,TransactionIdDataGenerator
@AlfrescoPublicApi
public abstract class AbstractDataGenerator
extends Object
implements DataGenerator, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.BeanNameAware
Abstract implementation to provide support.
- Since:
- 3.2
- Author:
- Derek Hulley
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.commons.logging.LogLogger that can be used by subclasses -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRegisters the instancebooleanThis implementation assumes all generators are stateless i.e. if the class matches then the instances are equal.voidsetBeanName(String name) Set the name with which toregistervoidsetRegistry(org.alfresco.util.registry.NamedObjectRegistry<DataGenerator> registry) Set the registry with which to registerMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.alfresco.repo.audit.generator.DataGenerator
getData
-
Field Details
-
logger
protected final org.apache.commons.logging.Log loggerLogger that can be used by subclasses
-
-
Constructor Details
-
AbstractDataGenerator
public AbstractDataGenerator()
-
-
Method Details
-
setBeanName
Set the name with which toregister- Specified by:
setBeanNamein interfaceorg.springframework.beans.factory.BeanNameAware- Parameters:
name- the name of the bean
-
setRegistry
Set the registry with which to register -
afterPropertiesSet
Registers the instance- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
equals
This implementation assumes all generators are stateless i.e. if the class matches then the instances are equal.
-