Commit Graph

338 Commits

Author SHA1 Message Date
Juergen Hoeller f15338b7dd DefaultListableBeanFactory checks for alias circle on registerAlias (avoiding endless loop; SPR-7274)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3409 50f2f4bb-b051-0410-bef5-90022cba6387
2010-06-10 21:45:47 +00:00
Juergen Hoeller 5e35ea0a5a registerDependentBean resolves to the canonical bean name in order to handle alias references (SPR-7254)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3391 50f2f4bb-b051-0410-bef5-90022cba6387
2010-06-07 22:15:20 +00:00
Juergen Hoeller 696c1f497b fixed registerResolvableDependency mechanism to correctly handle non-serializable factory objects (SPR-7264)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3383 50f2f4bb-b051-0410-bef5-90022cba6387
2010-06-07 18:08:44 +00:00
Juergen Hoeller c9ca1d03e2 added test for getType against an abstract FactoryBean
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3375 50f2f4bb-b051-0410-bef5-90022cba6387
2010-05-27 13:45:44 +00:00
Juergen Hoeller ee0036181a CachedIntrospectionResults only caches GenericTypeAwarePropertyDescriptors if fully safe (SPR-7227)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3374 50f2f4bb-b051-0410-bef5-90022cba6387
2010-05-27 13:45:21 +00:00
Juergen Hoeller b56337e7ab improved toString()
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3370 50f2f4bb-b051-0410-bef5-90022cba6387
2010-05-26 13:59:20 +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 6467e889b4 parse default elements if they live in the default namespace or if their parent is from another namespace (SPR-7218)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3360 50f2f4bb-b051-0410-bef5-90022cba6387
2010-05-20 19:18:34 +00:00
Juergen Hoeller c2fee2b31f refined BeanDefinitionParserDelegate to only parse default elements if they actually live in the default namespace (SPR-7218)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3358 50f2f4bb-b051-0410-bef5-90022cba6387
2010-05-20 17:15:56 +00:00
Juergen Hoeller 798f34810e revised BeanWrapper's exception wrapping to consistently handle ConversionExceptions (SPR-7177)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3345 50f2f4bb-b051-0410-bef5-90022cba6387
2010-05-17 21:59:02 +00:00
Arjen Poutsma f0544b5aad Added DeprecatedBeanWarner
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3343 50f2f4bb-b051-0410-bef5-90022cba6387
2010-05-17 14:31:48 +00:00
Juergen Hoeller 4840f1da39 BeanDefinitionVisitor/PropertyPlaceholderConfigurer finds and resolves values in arrays as well (SPR-7136)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3307 50f2f4bb-b051-0410-bef5-90022cba6387
2010-05-03 12:26:32 +00:00
Juergen Hoeller 9cea968cdc added default InputSourceEditor for SAX InputSource construction with a URL String as system id (SPR-7099)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3290 50f2f4bb-b051-0410-bef5-90022cba6387
2010-04-22 19:02:05 +00:00
Chris Beams 116848fb6d getBean(Class<?>) now filters out bean definitions for which isAutowireCandidate() is false (SPR-7120)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3287 50f2f4bb-b051-0410-bef5-90022cba6387
2010-04-22 16:34:36 +00:00
Juergen Hoeller 64228e966c introspect decorated definition for getType calls as well (SPR-7006)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3285 50f2f4bb-b051-0410-bef5-90022cba6387
2010-04-21 20:06:38 +00:00
Juergen Hoeller 7c04f12f73 PropertyTypeDescriptor detects underlying field with same lenient naming rules as CachedIntrospectionResults (SPR-7102)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3253 50f2f4bb-b051-0410-bef5-90022cba6387
2010-04-16 15:39:23 +00:00
David Syer faa0f29f0f Update version in POMs to 3.0.3
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3246 50f2f4bb-b051-0410-bef5-90022cba6387
2010-04-15 10:26:14 +00:00
Juergen Hoeller 3cd57a0148 polishing
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3245 50f2f4bb-b051-0410-bef5-90022cba6387
2010-04-14 12:18:05 +00:00
Juergen Hoeller 0f49919d33 fixed constructor argument caching for prototypes with multiple constructor matches (SPR-7084)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3244 50f2f4bb-b051-0410-bef5-90022cba6387
2010-04-14 12:11:56 +00:00
Juergen Hoeller 1b180b3e0e fixed URI construction to consider fragment as well (SPR-7083)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3237 50f2f4bb-b051-0410-bef5-90022cba6387
2010-04-09 15:26:43 +00:00
Juergen Hoeller 450b60b11b call setAccessible for public final field too (SPR-7078)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3236 50f2f4bb-b051-0410-bef5-90022cba6387
2010-04-08 12:15:18 +00:00
Chris Beams 54bf216425 typed map and collection conversion routines now eagerly reject non-assignable required types and avoid spurious InvocationException stack traces in debug log (SPR-7058)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3221 50f2f4bb-b051-0410-bef5-90022cba6387
2010-04-02 08:00:48 +00:00
Juergen Hoeller 193c2c4fb7 fixed decorated BeanDefinition condition for early type checking in AbstractBeanFactory (SPR-7006)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3206 50f2f4bb-b051-0410-bef5-90022cba6387
2010-03-31 15:21:48 +00:00
Juergen Hoeller d957f8c74c improved getBean(Class) javadoc
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3194 50f2f4bb-b051-0410-bef5-90022cba6387
2010-03-30 15:53:32 +00:00
Juergen Hoeller ab15578566 AbstractInterceptorDrivenBeanDefinitionDecorator exposes decorated BeanDefinition for early type checking in AbstractBeanFactory (SPR-7006)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3192 50f2f4bb-b051-0410-bef5-90022cba6387
2010-03-30 15:40:47 +00:00
Juergen Hoeller d2000690b5 ObjectFactoryCreatingFactoryBean creates a serializable ObjectFactory reference; added ProviderCreatingFactoryBean, exposing a serializable JSR-330 Provider reference (SPR-6998)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3191 50f2f4bb-b051-0410-bef5-90022cba6387
2010-03-30 14:45:43 +00:00
Chris Beams 22b34b3687 incorrectly invoked factory methods now result in exceptions with more descriptive messages (SPR-5475)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3177 50f2f4bb-b051-0410-bef5-90022cba6387
2010-03-26 12:05:36 +00:00
Juergen Hoeller 45c82a6197 fixed collection element conversion using ConversionService (SPR-6950)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3176 50f2f4bb-b051-0410-bef5-90022cba6387
2010-03-25 15:02:19 +00:00
Juergen Hoeller d434a950ba fixed collection element conversion using ConversionService (SPR-6950)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3173 50f2f4bb-b051-0410-bef5-90022cba6387
2010-03-25 11:53:41 +00:00
Juergen Hoeller 8c437a8214 fixed DataBinder's conversion error handling for direct field access with ConversionService (SPR-6953)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3163 50f2f4bb-b051-0410-bef5-90022cba6387
2010-03-24 17:40:45 +00:00
Juergen Hoeller 74705a7aea revised BeanTypeDescriptor into core PropertyTypeDescriptor; consider method annotations for return type (SPR-6979)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3162 50f2f4bb-b051-0410-bef5-90022cba6387
2010-03-24 16:27:33 +00:00
Chris Beams fa0c22908b updated JavaDoc regarding short-circuiting the BeanPostProcessor chain when returning null from BPP methods (SPR-6926)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3157 50f2f4bb-b051-0410-bef5-90022cba6387
2010-03-24 10:52:10 +00:00
Juergen Hoeller f307cf2db6 prevent findEditorByConvention AccessControlException on Google App Engine (SEC-1434)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3156 50f2f4bb-b051-0410-bef5-90022cba6387
2010-03-24 10:39:40 +00:00
Juergen Hoeller 639f4581e8 polishing
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3155 50f2f4bb-b051-0410-bef5-90022cba6387
2010-03-24 10:35:50 +00:00
Juergen Hoeller e62e56a1a4 BeanPostProcessors are allowed to return a null bean value in the middle of the chain (SPR-6926)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3154 50f2f4bb-b051-0410-bef5-90022cba6387
2010-03-24 10:34:21 +00:00
Chris Beams 9cc8d7ef91 SPR-7009, SPR-6972: backed out unintentionally committed tests
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3145 50f2f4bb-b051-0410-bef5-90022cba6387
2010-03-23 15:29:35 +00:00
Chris Beams 20719a4b27 SPR-6972: removed import
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3143 50f2f4bb-b051-0410-bef5-90022cba6387
2010-03-23 12:06:24 +00:00
Chris Beams 667eed1794 SPR-6972: failed attempt to reproduce issue
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3142 50f2f4bb-b051-0410-bef5-90022cba6387
2010-03-23 12:06:16 +00:00
Juergen Hoeller 0cf5372475 do not insist on BeanDefinition presence for @Value resolution (for use in unit tests; SPR-6918)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3111 50f2f4bb-b051-0410-bef5-90022cba6387
2010-03-16 23:47:40 +00:00
Juergen Hoeller 47871d47e2 autowire="byType" ignores parameter name when choosing a primary bean, as defined (SPR-6917)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3075 50f2f4bb-b051-0410-bef5-90022cba6387
2010-03-10 13:46:31 +00:00
Juergen Hoeller f6a13bac72 changed doGetBean signature back to protected (SPR-6957)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3074 50f2f4bb-b051-0410-bef5-90022cba6387
2010-03-10 13:38:46 +00:00
Juergen Hoeller 8c7221ce32 do not call isCurrentlyInCreation with null argument (in order to meet newly enforced assertions within the BeanFactory)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3059 50f2f4bb-b051-0410-bef5-90022cba6387
2010-03-05 10:49:24 +00:00
Juergen Hoeller 4a733513c1 added bean name assertions
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3058 50f2f4bb-b051-0410-bef5-90022cba6387
2010-03-04 22:36:35 +00:00
Juergen Hoeller cbb2ee2048 polishing
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3053 50f2f4bb-b051-0410-bef5-90022cba6387
2010-03-04 13:58:02 +00:00
Juergen Hoeller b31b943209 widened AbstractFactoryBean's "getObjectType" signature to return any Class as well (SPR-6872)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3030 50f2f4bb-b051-0410-bef5-90022cba6387
2010-02-23 13:00:12 +00:00
David Syer 25ef81476d Update Central POMs to 3.0.2
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3022 50f2f4bb-b051-0410-bef5-90022cba6387
2010-02-21 15:32:18 +00:00
Costin Leau 4be6044db9 + make use or property placeholders inside template.mf
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3014 50f2f4bb-b051-0410-bef5-90022cba6387
2010-02-19 09:43:22 +00:00
Juergen Hoeller 8e30cd98fd do not ever consider Object as a candidate type for autowiring by type (SPR-6600)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3001 50f2f4bb-b051-0410-bef5-90022cba6387
2010-02-18 00:04:08 +00:00
Juergen Hoeller f96ccfa39e BeanDefinitionReader and ClassPath/FileSystemXmlApplicationContext use varargs where possible (SPR-6849)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2988 50f2f4bb-b051-0410-bef5-90022cba6387
2010-02-16 11:59:29 +00:00
Juergen Hoeller e63911b373 improved "no matching factory method found" exception message (SPR-6837)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2978 50f2f4bb-b051-0410-bef5-90022cba6387
2010-02-15 13:01:46 +00:00