接口 ItemProcessor<I,O>
- 所有已知实现类:
AsyncItemProcessor
,BeanValidatingItemProcessor
,ClassifierCompositeItemProcessor
,CompositeItemProcessor
,CustomerCreditIncreaseProcessor
,CustomerUpdateProcessor
,FunctionItemProcessor
,ItemProcessorAdapter
,ItemProcessorAdapter
,MessageProcessor
,PassThroughItemProcessor
,ScriptItemProcessor
,SleepingItemProcessor
,StagingItemProcessor
,TradeProcessor
,UserMailItemProcessor
,ValidatingItemProcessor
public interface ItemProcessor<I,O>
Interface for item transformation. Given an item as input, this interface provides an extension point which allows for the application of business logic in an item oriented processing scenario. It should be noted that while it's possible to return a different type than the one provided, it's not strictly necessary. Furthermore, returning null indicates that the item should not be continued to be processed.- 作者:
- Robert Kasanicky, Dave Syer, Mahmoud Ben Hassine
方法详细资料
process
@Nullable O process(I item) throws java.lang.Exception
Process the provided item, returning a potentially modified or new item for continued processing. If the returned result is null, it is assumed that processing of the item should not continue.- 参数:
item
- to be processed- 返回:
- potentially modified or new item for continued processing,
null
if processing of the provided item should not continue. - 抛出:
java.lang.Exception
- thrown if exception occurs during processing.