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
Fields Modifier and Type Field Description protected org.apache.commons.logging.LogloggerLogger that can be used by subclasses
-
Constructor Summary
Constructors Constructor Description AbstractDataGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()Registers the instancebooleanequals(Object obj)This implementation assumes all generators are stateless i.e.voidsetBeanName(String name)Set the name with which toregistervoidsetRegistry(org.alfresco.util.registry.NamedObjectRegistry<DataGenerator> registry)Set the registry with which to register-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.alfresco.repo.audit.generator.DataGenerator
getData
-
-
-
-
Method Detail
-
setBeanName
public void setBeanName(String name)
Set the name with which toregister- Specified by:
setBeanNamein interfaceorg.springframework.beans.factory.BeanNameAware- Parameters:
name- the name of the bean
-
setRegistry
public void setRegistry(org.alfresco.util.registry.NamedObjectRegistry<DataGenerator> registry)
Set the registry with which to register
-
afterPropertiesSet
public void afterPropertiesSet() throws ExceptionRegisters the instance- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
-