Converts a property string value to the target field type. Supported field types for batch property injection:
- String
- StringBuffer
- StringBuilder
- Object
- Serializable
- CharSequence
- Comparable<String>
- int
- Integer
- long
- Long
- double
- Double
- boolean
- Boolean
- char
- Character
- float
- Float
- byte
- Byte
- short
- Short
- BigInteger
- BigDecimal
- java.util.Date
- Class
- Class<?>
- any Enum
- java.io.File
- java.util.zip.ZipFile
- java.util.jar.JarFile
- URL
- URI
- InetAddress
- Inet4Address
- Inet6Address
- java.util.logging.Logger
- java.util.regex.Pattern
- javax.management.ObjectName
- array of any of the above single-valued type, e.g., int[], Object[], Integer[], String[], Date[], TimeUnit[], etc
- java.util.Collection
- List
- ArrayList
- LinkedList
- Vector
- Set
- HashSet
- SortedSet
- TreeSet
- LinkedHashSet
- java.util.Properties
- Map
- HashMap
- Hashtable
- IdentityHashMap
- LinkedHashMap
- SortedMap
- TreeMap
- WeakHashMap
Common generics collections are supported. Wildcard is treated the same as String. for example:
- Collection<?>
- List<String>
- Set<Date>
- Map<?, ?>
- Map<String, ?>
- LinkedList<TimeUnit>
- ArrayList<Integer>