Commit Graph
194 Commits
Author SHA1 Message Date
Juergen Hoeller 1ba330c276 GenericTypeResolver works for nested parameterized types and for generic superclasses as well (SPR-7389)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3499 50f2f4bb-b051-0410-bef5-90022cba6387
2010-07-22 15:57:55 +00:00
Juergen Hoeller 568f84f25e fixed test failures with respect to null handling and PropertyTypeDescriptor usage for collection elements
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3448 50f2f4bb-b051-0410-bef5-90022cba6387
2010-06-23 19:31:51 +00:00
Juergen Hoeller 7fb245167e 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)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3447 50f2f4bb-b051-0410-bef5-90022cba6387
2010-06-23 17:29:34 +00:00
Oliver Gierke cbfb11fffb Rollback accidental commit :/.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3424 50f2f4bb-b051-0410-bef5-90022cba6387
2010-06-15 05:33:39 +00:00
Oliver Gierke d3de491ea1 Added missing imports.
Added additional annotation to test interface to make sure no ClassCastException appears.

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3423 50f2f4bb-b051-0410-bef5-90022cba6387
2010-06-15 05:29:48 +00:00
Oliver Gierke ccc01a9583 Added helper methods to access method parameter annotations.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3422 50f2f4bb-b051-0410-bef5-90022cba6387
2010-06-15 05:29:45 +00:00
Juergen Hoeller 689191548f properly support void.class in TypeDescriptor and GenericConversionService (SPR-7281)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3416 50f2f4bb-b051-0410-bef5-90022cba6387
2010-06-11 21:40:56 +00:00
Juergen Hoeller a7e259435e 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)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3369 50f2f4bb-b051-0410-bef5-90022cba6387
2010-05-26 13:58:37 +00:00
Juergen Hoeller f8089ea9b8 ClassUtils recognizes "void" as primitive type name as well (SPR-7212)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3347 50f2f4bb-b051-0410-bef5-90022cba6387
2010-05-18 08:49:09 +00:00
Juergen Hoeller 546d9968d9 property placeholders can deal with nested expressions which happen to use the same suffix (SPR-7098)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3282 50f2f4bb-b051-0410-bef5-90022cba6387
2010-04-21 09:22:20 +00:00
Keith Donald 1d581a876c polish
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3272 50f2f4bb-b051-0410-bef5-90022cba6387
2010-04-19 20:35:57 +00:00
Keith Donald e921c1d447 checking in performance tests
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3271 50f2f4bb-b051-0410-bef5-90022cba6387
2010-04-19 20:22:01 +00:00
Keith Donald 28a652ea77 caching optmizations and performance tests
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3268 50f2f4bb-b051-0410-bef5-90022cba6387
2010-04-19 03:58:28 +00:00
Keith Donald ca29f3be5e converter caching
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3265 50f2f4bb-b051-0410-bef5-90022cba6387
2010-04-18 21:43:00 +00:00
Keith Donald 53398416ec promoted char sequence first
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3261 50f2f4bb-b051-0410-bef5-90022cba6387
2010-04-17 20:22:30 +00:00
Keith Donald 90fb3dcfe3 fixed failing test
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3258 50f2f4bb-b051-0410-bef5-90022cba6387
2010-04-17 06:28:06 +00:00
Keith Donald 21a9cb510f fixed failing test
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3257 50f2f4bb-b051-0410-bef5-90022cba6387
2010-04-17 04:50:01 +00:00
Keith Donald eca3e5d0b8 improved conversion system logging, collection converter simplification/polish, several optimizations, annotation-driven formatting caching
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3255 50f2f4bb-b051-0410-bef5-90022cba6387
2010-04-17 04:43:28 +00:00
Ramnivas Laddad c340cf02e0 Improved fix for SPR-6850 by dealing with bounds separately from normal types
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3220 50f2f4bb-b051-0410-bef5-90022cba6387
2010-04-01 23:37:08 +00:00
Chris Beams 673373b448 corrected TypeUtils.isAssignable() failure to return true in certain valid wildcard bounding scenarios (SPR-6850)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3171 50f2f4bb-b051-0410-bef5-90022cba6387
2010-03-25 10:33:25 +00:00
Chris Beams fe84bf9b92 SPR-6888: ClassPathResource.getDescription() now fully qualifies resource path regardless of constructor used.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3133 50f2f4bb-b051-0410-bef5-90022cba6387
2010-03-22 14:54:39 +00:00
Costin Leau b58491749d + fixed internal caching for LocalVariableTableParameterNameDiscoverer
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2952 50f2f4bb-b051-0410-bef5-90022cba6387
2010-02-11 11:35:39 +00:00
Costin Leau c4b67ba0e5 + improved LocalVariableTableParameterNameDiscoverer discovery and memory usage
+ added extra tests

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2950 50f2f4bb-b051-0410-bef5-90022cba6387
2010-02-11 10:38:33 +00:00
Costin Leau 988d6e7f8a 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

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2874 50f2f4bb-b051-0410-bef5-90022cba6387
2010-01-29 14:27:49 +00:00
Costin Leau 898a30ae3f SPR-6775
+ replace the vanilla hashmap with a quick-and-dirty, JDK based, fixed LRU cache

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2872 50f2f4bb-b051-0410-bef5-90022cba6387
2010-01-28 15:51:20 +00:00
Arjen Poutsma 7cee45d74d Test for SPR-6690
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2815 50f2f4bb-b051-0410-bef5-90022cba6387
2010-01-15 11:17:27 +00:00
Juergen Hoeller fd915f1d92 unresolvable placeholders will be ignored by default for Resource array properties as well (SPR-6654)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2807 50f2f4bb-b051-0410-bef5-90022cba6387
2010-01-12 19:50:18 +00:00
Juergen Hoeller 4b46db27a9 fixed type assignability check for wildcarded Map (SPR-6676)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2806 50f2f4bb-b051-0410-bef5-90022cba6387
2010-01-12 15:31:30 +00:00
Juergen Hoeller 55557b778f use TypeDescriptor.forObject instead of constructor; enforce use of TypeDescriptor.valueOf through making the constructor private
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2683 50f2f4bb-b051-0410-bef5-90022cba6387
2009-12-15 20:18:31 +00:00
Keith Donald b34a2ab777 TypeDescriptor.valueOf usage in favor of constants; TypedValue usage simplification
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2681 50f2f4bb-b051-0410-bef5-90022cba6387
2009-12-15 19:41:52 +00:00
Keith Donald 25b0839597 object to String not supported test case
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2676 50f2f4bb-b051-0410-bef5-90022cba6387
2009-12-15 16:07:43 +00:00
Keith Donald f983f6c4d5 ObjectToObject converter now only matches public methods/constructors; private class method invocations also supported now through a makeAccessible call
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2675 50f2f4bb-b051-0410-bef5-90022cba6387
2009-12-15 15:53:11 +00:00
Keith Donald 6478829a47 general polishing
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2674 50f2f4bb-b051-0410-bef5-90022cba6387
2009-12-15 15:09:25 +00:00
Juergen Hoeller 246bb34e08 introspect element type in case of incoming Collection/Map in order to not accidentally say canConvert=true (SPR-6564)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2671 50f2f4bb-b051-0410-bef5-90022cba6387
2009-12-15 12:36:22 +00:00
Juergen Hoeller 18336e3732 introduced TypeDescriptor.OBJECT and TypeDescriptor.STRING
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2668 50f2f4bb-b051-0410-bef5-90022cba6387
2009-12-15 10:21:16 +00:00
Juergen Hoeller 18ec90aff9 revised default converters; renamed ConverterRegistry's addGenericConverter to addConverter
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2658 50f2f4bb-b051-0410-bef5-90022cba6387
2009-12-14 21:14:26 +00:00
Keith Donald 46cb691cf8 SPR-6537 initial commit; more extensive testing to follow
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2619 50f2f4bb-b051-0410-bef5-90022cba6387
2009-12-10 17:36:58 +00:00
Juergen Hoeller ed5de705ac GenericConversionService prefers matches against inherited interfaces over superclasses (SPR-6297)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2610 50f2f4bb-b051-0410-bef5-90022cba6387
2009-12-09 16:16:55 +00:00
Arjen Poutsma b96070163e SPR-6482 - @RequestMapping handled incorrectly when value contains "." (dot) character
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2589 50f2f4bb-b051-0410-bef5-90022cba6387
2009-12-07 13:59:07 +00:00
Arjen Poutsma c2b7b406c4 SPR-6280 - PathVariable resolution does not work properly
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2499 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-24 13:53:37 +00:00
Keith Donald c52f5a696a removed entity to string id conversion routine as it is not required
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2495 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-23 00:07:39 +00:00
Keith Donald 5bbb38479d Added entity conveter null checking; updated from string converters to simply test str.length() as pre-processing check
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2494 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-22 15:40:41 +00:00
Keith Donald f4a9460bc6 moved test case where it belongs
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2493 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-21 18:36:40 +00:00
Keith Donald 101a0667f3 polish
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2492 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-21 18:34:04 +00:00
Keith Donald 9d1daf3232 found hotspot; added ConverisonServiceFactoryBean
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2473 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-20 14:43:12 +00:00
David Syer 5ad4d199cc Add some tests (and comment out the one that is breaking the build)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2470 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-20 13:36:57 +00:00
Keith Donald e1463010f4 doc updates
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2467 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-20 05:00:28 +00:00
Keith Donald f6ee598cd3 default conversion service instance caching and tests
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2452 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-19 15:23:56 +00:00
Keith Donald 6137e740f2 default conversion service instance caching and tests
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2451 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-19 15:22:44 +00:00
Keith Donald a15c8635a9 moved generic converter to spi; added entity converter; removed various service impls in favor of service factory
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2448 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-19 09:11:19 +00:00