Commit Graph
173 Commits
Author SHA1 Message Date
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
Keith Donald 12b6feacac 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@2447 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-19 09:10:51 +00:00
David Syer 62570a8e82 RESOLVED - issue SPR-6366: Cannot import bean definitions using classpath*: resource location
http://jira.springframework.org/browse/SPR-6366

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2445 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-18 07:54:19 +00:00
Keith Donald 449889af84 SPR-6350
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2435 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-14 05:44:46 +00:00
David Syer cc30c87a29 RESOLVED - issue SPR-6321: Regression: ResourceEditor in 3.0 does not ignore unresolvable placeholders, but it did in 2.5.6
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2394 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-12 11:07:15 +00:00
Keith Donald fd45d264bd updated test to reflect correct behavior
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2385 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-12 07:13:00 +00:00
Keith Donald e9b484b20e fixed failing tests due to generic object to object converter fallback being over eager
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2383 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-12 06:57:51 +00:00
Keith Donald 9cf4dce9ff valueOf and Constructor-based conversion of source objects to targetTypes
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2381 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-12 05:25:03 +00:00
Juergen Hoeller 9d14faa676 AnnotationMetadata returns Class values by default (again), allowing for explicit retrieval of String class names where preferred (SPR-5827)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2346 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-11 19:24:43 +00:00
Arjen Poutsma 8f3bf2c779 Renamed Md5HashUtils to DigestUtils
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2275 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-06 11:52:53 +00:00
Keith Donald 4aafe47a52 polish
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2249 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-04 17:07:25 +00:00
Keith Donald ef5e79f47c SPR-6199
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2152 50f2f4bb-b051-0410-bef5-90022cba6387
2009-10-19 00:13:30 +00:00
Keith Donald e3b0a642b1 added null handling, fixed bug relating to conversion of non-generic collections
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2151 50f2f4bb-b051-0410-bef5-90022cba6387
2009-10-18 22:20:53 +00:00
Keith Donald 4af6fd7e0d SPR-6179, additional mapper test cases
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2047 50f2f4bb-b051-0410-bef5-90022cba6387
2009-10-04 04:13:27 +00:00
Juergen Hoeller beed00b5b7 understand "on"/"off", "yes"/"no", "1"/"0" as boolean values (analogous to CustomBooleanEditor)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2034 50f2f4bb-b051-0410-bef5-90022cba6387
2009-10-01 11:18:48 +00:00
Juergen Hoeller 9eac45c987 removed classes which are not used in 3.0 yet
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1997 50f2f4bb-b051-0410-bef5-90022cba6387
2009-09-24 22:54:35 +00:00
Juergen Hoeller 7d68ca8992 PropertyPlaceholderConfigurer supports "${myKey:myDefaultValue}" defaulting syntax
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1994 50f2f4bb-b051-0410-bef5-90022cba6387
2009-09-24 22:34:02 +00:00
Keith Donald eacab1aa86 more tests
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1975 50f2f4bb-b051-0410-bef5-90022cba6387
2009-09-23 18:36:11 +00:00
Keith Donald f7569e3281 completed generic converter implementation
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1974 50f2f4bb-b051-0410-bef5-90022cba6387
2009-09-23 18:25:04 +00:00
Keith Donald 7edc333af9 map converters
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1966 50f2f4bb-b051-0410-bef5-90022cba6387
2009-09-23 04:45:04 +00:00
Keith Donald dd9eb663f2 string to map converters
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1965 50f2f4bb-b051-0410-bef5-90022cba6387
2009-09-23 04:20:23 +00:00
Keith Donald 46e8745cd8 more generic converters
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1962 50f2f4bb-b051-0410-bef5-90022cba6387
2009-09-22 20:28:23 +00:00