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.