org.springframework.batch.item.adapter
Class ItemWriterAdapter<T>

java.lang.Object
  extended by org.springframework.batch.item.adapter.AbstractMethodInvokingDelegator<T>
      extended by org.springframework.batch.item.adapter.ItemWriterAdapter<T>
All Implemented Interfaces:
ItemWriter<T>, InitializingBean

public class ItemWriterAdapter<T>
extends AbstractMethodInvokingDelegator<T>
implements ItemWriter<T>

Delegates item processing to a custom method - passes the item as an argument for the delegate method.

Author:
Robert Kasanicky
See Also:
PropertyExtractingDelegatingItemWriter

Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.batch.item.adapter.AbstractMethodInvokingDelegator
AbstractMethodInvokingDelegator.InvocationTargetThrowableWrapper
 
Constructor Summary
ItemWriterAdapter()
           
 
Method Summary
 void write(List<? extends T> items)
          Process the supplied data element.
 
Methods inherited from class org.springframework.batch.item.adapter.AbstractMethodInvokingDelegator
afterPropertiesSet, invokeDelegateMethod, invokeDelegateMethodWithArgument, invokeDelegateMethodWithArguments, setArguments, setTargetMethod, setTargetObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemWriterAdapter

public ItemWriterAdapter()
Method Detail

write

public void write(List<? extends T> items)
           throws Exception
Description copied from interface: ItemWriter
Process the supplied data element. Will not be called with any null items in normal operation.

Specified by:
write in interface ItemWriter<T>
Throws:
Exception - if there are errors. The framework will catch the exception and convert or rethrow it as appropriate.


Copyright © 2013 SpringSource. All Rights Reserved.