org.alfresco.repo.batch
Class BatchProcessor.BatchProcessWorkerAdaptor

java.lang.Object
  extended by org.alfresco.repo.batch.BatchProcessor.BatchProcessWorkerAdaptor
All Implemented Interfaces:
BatchProcessor.BatchProcessWorker
Enclosing class:
BatchProcessor

public abstract static class BatchProcessor.BatchProcessWorkerAdaptor
extends java.lang.Object
implements BatchProcessor.BatchProcessWorker

Adaptor that allows implementations to only implement BatchProcessor.BatchProcessWorker.process(Object)


Constructor Summary
BatchProcessor.BatchProcessWorkerAdaptor()
           
 
Method Summary
 void afterProcess()
          No-op
 void beforeProcess()
          No-op
 java.lang.String getIdentifier(java.lang.Object entry)
          Gets an identifier for the given entry (for monitoring / logging purposes).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.alfresco.repo.batch.BatchProcessor.BatchProcessWorker
process
 

Constructor Detail

BatchProcessor.BatchProcessWorkerAdaptor

public BatchProcessor.BatchProcessWorkerAdaptor()
Method Detail

getIdentifier

public java.lang.String getIdentifier(java.lang.Object entry)
Description copied from interface: BatchProcessor.BatchProcessWorker
Gets an identifier for the given entry (for monitoring / logging purposes).

Specified by:
getIdentifier in interface BatchProcessor.BatchProcessWorker
Parameters:
entry - the entry
Returns:
Returns the toString() of the entry

beforeProcess

public void beforeProcess()
                   throws java.lang.Throwable
No-op

Specified by:
beforeProcess in interface BatchProcessor.BatchProcessWorker
Throws:
java.lang.Throwable

afterProcess

public void afterProcess()
                  throws java.lang.Throwable
No-op

Specified by:
afterProcess in interface BatchProcessor.BatchProcessWorker
Throws:
java.lang.Throwable


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