Class LoggingItemWriter<T>

  • All Implemented Interfaces:
    ItemWriter<T>

    public class LoggingItemWriter<T>
    extends java.lang.Object
    implements ItemWriter<T>
    • Field Summary

      Fields 
      Modifier and TypeFieldDescription
      protected org.apache.commons.logging.Loglogger 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      voidwrite​(java.util.List<? extends T> items)
      Process the supplied data element.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        protected org.apache.commons.logging.Log logger
    • Constructor Detail

      • LoggingItemWriter

        public LoggingItemWriter()
    • Method Detail

      • write

        public void write​(java.util.List<? extends T> items)
                   throws java.lang.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>
        Parameters:
        items - items to be written
        Throws:
        java.lang.Exception - if there are errors. The framework will catch the exception and convert or rethrow it as appropriate.