org.lexgrid.loader.processor
Class AbstractParameterPassingDoubleListProcessor<I,O>

java.lang.Object
  extended by org.lexgrid.loader.processor.AbstractParameterPassingDoubleListProcessor<I,O>
All Implemented Interfaces:
org.springframework.batch.item.ItemProcessor<java.util.List<I>,java.util.List<O>>
Direct Known Subclasses:
MrstyListProcessor

public abstract class AbstractParameterPassingDoubleListProcessor<I,O>
extends java.lang.Object
implements org.springframework.batch.item.ItemProcessor<java.util.List<I>,java.util.List<O>>

The Class AbstractParameterPassingDoubleListProcessor.

Author:
Kevin Peterson

Constructor Summary
AbstractParameterPassingDoubleListProcessor()
           
 
Method Summary
protected abstract  java.util.List<O> afterProcessing(java.util.List<O> processedItems, java.util.List<I> originalItems)
          After processing.
protected abstract  java.util.List<I> beforeProcessing(java.util.List<I> items)
          Before processing.
 org.springframework.batch.item.ItemProcessor<I,? extends java.util.List<O>> getDelegate()
           
 java.util.List<O> process(java.util.List<I> items)
           
 void setDelegate(org.springframework.batch.item.ItemProcessor<I,? extends java.util.List<O>> delegate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractParameterPassingDoubleListProcessor

public AbstractParameterPassingDoubleListProcessor()
Method Detail

process

public java.util.List<O> process(java.util.List<I> items)
                          throws java.lang.Exception
Specified by:
process in interface org.springframework.batch.item.ItemProcessor<java.util.List<I>,java.util.List<O>>
Throws:
java.lang.Exception

beforeProcessing

protected abstract java.util.List<I> beforeProcessing(java.util.List<I> items)
Before processing.

Parameters:
items - the items
Returns:
the list< i>

afterProcessing

protected abstract java.util.List<O> afterProcessing(java.util.List<O> processedItems,
                                                     java.util.List<I> originalItems)
After processing.

Parameters:
processedItems - the processed items
originalItems - the original items
Returns:
the list< o>

getDelegate

public org.springframework.batch.item.ItemProcessor<I,? extends java.util.List<O>> getDelegate()

setDelegate

public void setDelegate(org.springframework.batch.item.ItemProcessor<I,? extends java.util.List<O>> delegate)

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.