Commit Graph

193 Commits

Author SHA1 Message Date
Juergen Hoeller
8f8fc97b79 fixed test failures with respect to null handling and PropertyTypeDescriptor usage for collection elements 2010-06-23 19:31:51 +00:00
Juergen Hoeller
27b04036a9 ConversionService is able to deal with empty collections and nested collections (fixed regression; SPR-7289, SPR-7293); ConversionService properly handles nested Resource arrays in Map values (fixed regression; SPR-7295); ConversionService does not accidentally use copy constructor for same type (SPR-7304) 2010-06-23 17:29:34 +00:00
Oliver Gierke
420f8237c0 Rollback accidental commit :/. 2010-06-15 05:33:39 +00:00
Oliver Gierke
897aab9f59 Added missing imports.
Added additional annotation to test interface to make sure no ClassCastException appears.
2010-06-15 05:29:48 +00:00
Oliver Gierke
a383633630 Added helper methods to access method parameter annotations. 2010-06-15 05:29:45 +00:00
Juergen Hoeller
379bc5a8a6 properly support void.class in TypeDescriptor and GenericConversionService (SPR-7281) 2010-06-11 21:40:56 +00:00
Juergen Hoeller
1532119787 ConversionService is able to apply Converters to interface-based array elements (SPR-7150); a context ConversionService is able to override an ApplicationContext's resource editors (SPR-7079) 2010-05-26 13:58:37 +00:00
Juergen Hoeller
de326e5e95 ClassUtils recognizes "void" as primitive type name as well (SPR-7212) 2010-05-18 08:49:09 +00:00
Juergen Hoeller
77074c6c87 property placeholders can deal with nested expressions which happen to use the same suffix (SPR-7098) 2010-04-21 09:22:20 +00:00
Keith Donald
e21a1c5a61 polish 2010-04-19 20:35:57 +00:00
Keith Donald
86906d1b4d checking in performance tests 2010-04-19 20:22:01 +00:00
Keith Donald
e60389283d caching optmizations and performance tests 2010-04-19 03:58:28 +00:00
Keith Donald
bf03d0d56f converter caching 2010-04-18 21:43:00 +00:00
Keith Donald
8464ac90c7 promoted char sequence first 2010-04-17 20:22:30 +00:00
Keith Donald
b9aeba23ef fixed failing test 2010-04-17 06:28:06 +00:00
Keith Donald
d98da7d240 fixed failing test 2010-04-17 04:50:01 +00:00
Keith Donald
64d6a42dfd improved conversion system logging, collection converter simplification/polish, several optimizations, annotation-driven formatting caching 2010-04-17 04:43:28 +00:00
Ramnivas Laddad
66d2c6698b Improved fix for SPR-6850 by dealing with bounds separately from normal types 2010-04-01 23:37:08 +00:00
Chris Beams
fbda55f141 corrected TypeUtils.isAssignable() failure to return true in certain valid wildcard bounding scenarios (SPR-6850) 2010-03-25 10:33:25 +00:00
Chris Beams
5e19f2959e SPR-6888: ClassPathResource.getDescription() now fully qualifies resource path regardless of constructor used. 2010-03-22 14:54:39 +00:00
Costin Leau
caaa45c9ef + fixed internal caching for LocalVariableTableParameterNameDiscoverer 2010-02-11 11:35:39 +00:00
Costin Leau
c9975504c6 + improved LocalVariableTableParameterNameDiscoverer discovery and memory usage
+ added extra tests
2010-02-11 10:38:33 +00:00
Costin Leau
ee2b1cde82 SPR-6775
+ remove class definitions for sticking around (by forcing eager metadata initialization)
+ improve cache size by eliminating the numbers of method metadata objects created
+ improve lookup access on method metadata
2010-01-29 14:27:49 +00:00
Costin Leau
b32c4cfb8a SPR-6775
+ replace the vanilla hashmap with a quick-and-dirty, JDK based, fixed LRU cache
2010-01-28 15:51:20 +00:00
Arjen Poutsma
0cb9271b95 Test for SPR-6690 2010-01-15 11:17:27 +00:00
Juergen Hoeller
e195c39d3c unresolvable placeholders will be ignored by default for Resource array properties as well (SPR-6654) 2010-01-12 19:50:18 +00:00
Juergen Hoeller
7cbd9e1d93 fixed type assignability check for wildcarded Map (SPR-6676) 2010-01-12 15:31:30 +00:00
Juergen Hoeller
dc99df2972 use TypeDescriptor.forObject instead of constructor; enforce use of TypeDescriptor.valueOf through making the constructor private 2009-12-15 20:18:31 +00:00
Keith Donald
2fef141a00 TypeDescriptor.valueOf usage in favor of constants; TypedValue usage simplification 2009-12-15 19:41:52 +00:00
Keith Donald
8ff801648d object to String not supported test case 2009-12-15 16:07:43 +00:00
Keith Donald
5c7c56a6b3 ObjectToObject converter now only matches public methods/constructors; private class method invocations also supported now through a makeAccessible call 2009-12-15 15:53:11 +00:00
Keith Donald
b64945988b general polishing 2009-12-15 15:09:25 +00:00
Juergen Hoeller
2153b2fbd5 introspect element type in case of incoming Collection/Map in order to not accidentally say canConvert=true (SPR-6564) 2009-12-15 12:36:22 +00:00
Juergen Hoeller
f52986ea15 introduced TypeDescriptor.OBJECT and TypeDescriptor.STRING 2009-12-15 10:21:16 +00:00
Juergen Hoeller
6622c71935 revised default converters; renamed ConverterRegistry's addGenericConverter to addConverter 2009-12-14 21:14:26 +00:00
Keith Donald
96de14ef2e SPR-6537 initial commit; more extensive testing to follow 2009-12-10 17:36:58 +00:00
Juergen Hoeller
010e72c35a GenericConversionService prefers matches against inherited interfaces over superclasses (SPR-6297) 2009-12-09 16:16:55 +00:00
Arjen Poutsma
976f920db2 SPR-6482 - @RequestMapping handled incorrectly when value contains "." (dot) character 2009-12-07 13:59:07 +00:00
Arjen Poutsma
ef50082cad SPR-6280 - PathVariable resolution does not work properly 2009-11-24 13:53:37 +00:00
Keith Donald
12e8f31b38 removed entity to string id conversion routine as it is not required 2009-11-23 00:07:39 +00:00
Keith Donald
064b6db666 Added entity conveter null checking; updated from string converters to simply test str.length() as pre-processing check 2009-11-22 15:40:41 +00:00
Keith Donald
48e1ed0a24 moved test case where it belongs 2009-11-21 18:36:40 +00:00
Keith Donald
c3044e122c polish 2009-11-21 18:34:04 +00:00
Keith Donald
692b1ef636 found hotspot; added ConverisonServiceFactoryBean 2009-11-20 14:43:12 +00:00
David Syer
f49a8d2e3e Add some tests (and comment out the one that is breaking the build) 2009-11-20 13:36:57 +00:00
Keith Donald
b896457586 doc updates 2009-11-20 05:00:28 +00:00
Keith Donald
da5432fbf5 default conversion service instance caching and tests 2009-11-19 15:23:56 +00:00
Keith Donald
7b561c76fe default conversion service instance caching and tests 2009-11-19 15:22:44 +00:00
Keith Donald
3bfbcd7276 moved generic converter to spi; added entity converter; removed various service impls in favor of service factory 2009-11-19 09:11:19 +00:00
Keith Donald
d85dc01e28 moved generic converter to spi; added entity converter; removed various service impls in favor of service factory 2009-11-19 09:10:51 +00:00