Juergen Hoeller
d46ab813d2
clearly document behavior with respect to beans of same name at different factory levels (SPR-6117)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3672 50f2f4bb-b051-0410-bef5-90022cba6387
2010-09-09 22:12:23 +00:00
Juergen Hoeller
68597b9359
avoid failures in case of manually registered null instance (SPR-7523)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3641 50f2f4bb-b051-0410-bef5-90022cba6387
2010-09-06 19:47:16 +00:00
Juergen Hoeller
da758771fa
consistent use of JDK 1.5's ThreadLocal.remove() over ThreadLocal.set(null), preventing leaks (SPR-7441)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3627 50f2f4bb-b051-0410-bef5-90022cba6387
2010-09-01 17:17:25 +00:00
Ben Hale
82e5f5f5d6
Publishing license and notice files
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3612 50f2f4bb-b051-0410-bef5-90022cba6387
2010-08-23 13:17:31 +00:00
Arjen Poutsma
750dc01862
Prepping for 3.0.5
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3611 50f2f4bb-b051-0410-bef5-90022cba6387
2010-08-19 11:04:04 +00:00
Juergen Hoeller
f68aa25579
temporarily disabled constructor argument caching for converted values (SPR-7423)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3608 50f2f4bb-b051-0410-bef5-90022cba6387
2010-08-19 09:30:04 +00:00
Juergen Hoeller
5d4e145192
revised constructor argument caching for highly concurrent creation scenarios (follow-up to SPR-7423)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3603 50f2f4bb-b051-0410-bef5-90022cba6387
2010-08-18 09:08:55 +00:00
Chris Beams
1bcaef2b9a
Document BeanFactoryPostProcessor implementation constraints (SPR-7466)
...
JavaDoc and reference docs now warn developers against interacting with
bean instances within BeanFactoryPostProcessor implementations in order
to avoid premature bean instantiation.
See SPR-7450 for an example of a third-party BFPP
(OAuthTokenLifecycleRegistryPostProcessor) prematurely instantiating
a FactoryBean instance, such that bean post-processing is bypassed
and autowired injection (via @Inject) never occurs.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3602 50f2f4bb-b051-0410-bef5-90022cba6387
2010-08-17 09:50:22 +00:00
Juergen Hoeller
0f9a15c613
polishing
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3570 50f2f4bb-b051-0410-bef5-90022cba6387
2010-08-12 18:49:13 +00:00
Juergen Hoeller
4e33c7d442
Spring's constructor resolution consistently finds non-public multi-arg constructors (SPR-7453)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3565 50f2f4bb-b051-0410-bef5-90022cba6387
2010-08-11 19:24:30 +00:00
Juergen Hoeller
cf0d7dae3d
reintroduced createInstance() template method in deprecated form (SPR-7428)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3523 50f2f4bb-b051-0410-bef5-90022cba6387
2010-08-07 11:16:46 +00:00
Juergen Hoeller
3af58a1434
added missing setter method for the "valueSeparator" property (SPR-7429)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3522 50f2f4bb-b051-0410-bef5-90022cba6387
2010-08-07 11:03:49 +00:00
Juergen Hoeller
78f5cf16a0
fixed concurrency issue in TypedStringValue, showing for nested typed Maps in prototype beans (SPR-7398); optimized building of keyed arg names in BeanDefinitionValueResolver
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3513 50f2f4bb-b051-0410-bef5-90022cba6387
2010-07-29 13:49:09 +00:00
Juergen Hoeller
cf7b934199
added further test case for property type detection with generic interface
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3506 50f2f4bb-b051-0410-bef5-90022cba6387
2010-07-26 20:39:27 +00:00
Juergen Hoeller
085449cf1e
fixed @PathVariable regression in combination with ConversionService usage on DataBinder
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3504 50f2f4bb-b051-0410-bef5-90022cba6387
2010-07-26 20:14:57 +00:00
Juergen Hoeller
e14d7e8efb
allow for converting a property value based on the corresponding property name (SPR-7386)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3493 50f2f4bb-b051-0410-bef5-90022cba6387
2010-07-21 11:17:44 +00:00
Juergen Hoeller
3d06c7229c
BeanWrapper preserves annotation information for individual array/list/map elements (SPR-7348)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3482 50f2f4bb-b051-0410-bef5-90022cba6387
2010-07-12 20:56:22 +00:00
Chris Beams
13bdd249b7
licensing header
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3468 50f2f4bb-b051-0410-bef5-90022cba6387
2010-06-28 23:20:44 +00:00
Chris Beams
49ae2e809d
attempted to repro SPR-7318 to no avail
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3467 50f2f4bb-b051-0410-bef5-90022cba6387
2010-06-28 22:57:26 +00:00
Juergen Hoeller
52c4834750
removed eager skipping of empty collection conversion, for UtilNamespaceHandlerTests to pass again
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3453 50f2f4bb-b051-0410-bef5-90022cba6387
2010-06-23 20:05:00 +00:00
Juergen Hoeller
c4b4eabe06
refined ignoreUnresolvablePlaceholders javadoc
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3450 50f2f4bb-b051-0410-bef5-90022cba6387
2010-06-23 19:33:03 +00:00
Juergen Hoeller
afffa21643
skip collection conversion early if empty
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3449 50f2f4bb-b051-0410-bef5-90022cba6387
2010-06-23 19:32:29 +00:00
Juergen Hoeller
6a843cde2b
BeanWrapper/DataBinder's "autoGrowNestedPaths" works for Maps as well (SPR-7285)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3446 50f2f4bb-b051-0410-bef5-90022cba6387
2010-06-23 17:27:37 +00:00
Oliver Gierke
2418c62ff1
SPR-7311 - Clarify usage of PropertyEditorRegistrars VS. plain configuration of customEditors property in CustomEditorConfigurer JavaDoc.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3441 50f2f4bb-b051-0410-bef5-90022cba6387
2010-06-22 12:41:59 +00:00
Arjen Poutsma
7f54fe732f
Upgrading version to 3.0.4
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3428 50f2f4bb-b051-0410-bef5-90022cba6387
2010-06-15 14:18:29 +00:00
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