Class MojetLineAggregator<T>

java.lang.Object
pro.cyberyon.mojet.MojetLineAggregator<T>
Type Parameters:
T - pojo type
All Implemented Interfaces:
org.springframework.batch.item.file.transform.LineAggregator<T>

public class MojetLineAggregator<T> extends Object implements org.springframework.batch.item.file.transform.LineAggregator<T>
This class allow to write type as a line of characters.
Author:
Guillaume CHAUVET
  • Field Details

    • root

      protected final RecordNode root
      The pojo class type
  • Constructor Details

    • MojetLineAggregator

      public MojetLineAggregator(Class<T> type)
      Construct a new pojo LineAggregator instance
      Parameters:
      type - the bean type to manage
    • MojetLineAggregator

      public MojetLineAggregator(NodesBuilder builder, Class<T> type)
      Construct a new pojo LineAggregator instance
      Parameters:
      builder - the node builder instance to use
      type - the bean type to manage
  • Method Details

    • aggregate

      public String aggregate(T item)
      Specified by:
      aggregate in interface org.springframework.batch.item.file.transform.LineAggregator<T>