类 ItemWriterAdapter<T>
- java.lang.Object
- org.springframework.batch.item.adapter.AbstractMethodInvokingDelegator<T>
- org.springframework.batch.item.adapter.ItemWriterAdapter<T>
- 所有已实现的接口:
ItemWriter<T>
,org.springframework.beans.factory.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.- 作者:
- Robert Kasanicky
- 另请参阅:
PropertyExtractingDelegatingItemWriter
嵌套类概要
从类继承的嵌套类/接口 org.springframework.batch.item.adapter.AbstractMethodInvokingDelegator
AbstractMethodInvokingDelegator.InvocationTargetThrowableWrapper
构造器概要
构造器 构造器 说明 ItemWriterAdapter()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
write(java.util.List<? extends T> items)
Process the supplied data element.从类继承的方法 org.springframework.batch.item.adapter.AbstractMethodInvokingDelegator
afterPropertiesSet, getArguments, invokeDelegateMethod, invokeDelegateMethodWithArgument, invokeDelegateMethodWithArguments, setArguments, setTargetMethod, setTargetObject
构造器详细资料
ItemWriterAdapter
public ItemWriterAdapter()
方法详细资料
write
public void write(java.util.List<? extends T> items) throws java.lang.Exception
从接口复制的说明:ItemWriter
Process the supplied data element. Will not be called with any null items in normal operation.- 指定者:
write
在接口中ItemWriter<T>
- 参数:
items
- items to be written- 抛出:
java.lang.Exception
- if there are errors. The framework will catch the exception and convert or rethrow it as appropriate.