Class ItemProcessorAdapter<I,​O>

  • All Implemented Interfaces:
    ItemProcessor<I,​O>, org.springframework.beans.factory.InitializingBean

    public class ItemProcessorAdapter<I,​O>
    extends AbstractMethodInvokingDelegator<O>
    implements ItemProcessor<I,​O>
    Invokes a custom method on a delegate plain old Java object which itself processes an item.
    Author:
    Dave Syer
    • Constructor Detail

      • ItemProcessorAdapter

        public ItemProcessorAdapter()
    • Method Detail

      • process

        public O process​(I item)
                  throws java.lang.Exception
        Invoke the delegate method and return the result.
        Specified by:
        process in interface ItemProcessor<I,​O>
        Parameters:
        item - to be processed
        Returns:
        potentially modified or new item for continued processing, null if processing of the provided item should not continue.
        Throws:
        java.lang.Exception - thrown if exception occurs during processing.
        See Also:
        ItemProcessor.process(Object)