Uploaded image for project: 'JBeret'
  1. JBeret
  2. JBERET-594

Support for additional JDK 7+ @BatchProperty types

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • None
    • None

    Description

      The Jakarta batch 2.1 specification mandates support only for the following types:

      String
      Boolean
      Double
      Float
      Integer
      Long
      Short

      JBeret, meanwhile, extends in BatchBeanProducer the specification mandated behavior with a lot of additional types:

      String[]
      Boolean[]
      boolean[]
      Double[]
      double[]
      Float[]
      float[]
      Integer[]
      int[]
      Long[]
      long[]
      Short[]
      short[]
      Byte
      Byte[]
      byte[]
      Character
      Character[]
      char[]
      Date
      Date[]
      Class
      Class[]
      Inet4Address
      Inet6Address
      Map
      Map<String, String>
      Set
      Set<String>
      Logger
      Pattern
      ObjectName
      List
      List<String>
      BigInteger
      BigInteger[]
      BigDecimal
      BigDecimal[]
      URL
      URL[]
      URI
      URI[]
      File
      File[]
      ZipFile[]
      JarFile
      JarFile[]
      StringBuilder
      StringBuffer

      All the most common data types that were introduced after Java 6 are not contemplated. My proposal is to add injection support java.nio.file.Path and all java.time API objects. To be more clear here's the full list:

      Path
      Duration
      Instant
      LocalDate
      LocalDateTime
      LocalTime
      MonthDay
      OffsetDateTime
      OffsetTime
      Period
      Year
      YearMonth
      ZonedDateTime
      ZoneId
      ZoneOffset

      What's your opinion about this?

      If it makes sense I can try to create a dedicated PR.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tamaghei@gmail.com Lorenzo Formenti (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: