Class MojetPolyLineMapper<T extends RecordVisitable>

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

public class MojetPolyLineMapper<T extends RecordVisitable> extends Object implements org.springframework.batch.item.file.LineMapper<T>
This mapper allow handling of multiple record type.
Author:
Guillaume CHAUVET
See Also:
  • PatternMatcher
  • Constructor Details

    • MojetPolyLineMapper

      public MojetPolyLineMapper(Set<Class<? extends T>> pojos)
      Construct a new mapper whos can handle multiple visitable records
      Parameters:
      pojos - set of visitable classes in the same scope
  • Method Details

    • mapLine

      public T mapLine(String line, int lineNumber) throws Exception
      Specified by:
      mapLine in interface org.springframework.batch.item.file.LineMapper<T extends RecordVisitable>
      Throws:
      Exception