org.alfresco.repo.audit.extractor
Class AbstractDataExtractor

java.lang.Object
  extended by org.alfresco.repo.audit.extractor.AbstractDataExtractor
All Implemented Interfaces:
DataExtractor, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
CMISChangeLogDataExtractor, CMISChangeLogDataExtractor, NodeNameDataExtractor, NodeTypeDataExtractor, NullValueDataExtractor, SimpleValueDataExtractor

public abstract class AbstractDataExtractor
extends java.lang.Object
implements DataExtractor, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.BeanNameAware

Abstract implementation to provide support.

Since:
3.2

Field Summary
protected  org.apache.commons.logging.Log logger
          Logger that can be used by subclasses
 
Constructor Summary
AbstractDataExtractor()
           
 
Method Summary
 void afterPropertiesSet()
          Registers the instance
 boolean equals(java.lang.Object obj)
          This implementation assumes all extractors are stateless i.e.
 void setBeanName(java.lang.String name)
          Set the name with which to register
 void setRegistry(org.alfresco.util.registry.NamedObjectRegistry 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.extractor.DataExtractor
extractData, isSupported
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
Logger that can be used by subclasses

Constructor Detail

AbstractDataExtractor

public AbstractDataExtractor()
Method Detail

setBeanName

public void setBeanName(java.lang.String name)
Set the name with which to register

Specified by:
setBeanName in interface org.springframework.beans.factory.BeanNameAware
Parameters:
name - the name of the bean

setRegistry

public void setRegistry(org.alfresco.util.registry.NamedObjectRegistry registry)
Set the registry with which to register


afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Registers the instance

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

equals

public boolean equals(java.lang.Object obj)
This implementation assumes all extractors are stateless i.e. if the class matches then the instances are equal.

Overrides:
equals in class java.lang.Object


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.