Juergen Hoeller
9a39a25bb5
Detect generic type match behind interface-based proxy as well
...
Issue: SPR-14097
(cherry picked from commit f805427 )
2016-12-26 11:40:40 +01:00
Juergen Hoeller
28e114b569
Clarify programmatic contract (no annotation-driven injection)
...
Issue: SPR-8704
(cherry picked from commit fd41f63 )
2016-12-26 11:40:25 +01:00
Juergen Hoeller
8662c61a17
Polishing
...
(cherry picked from commit 154ef8b )
2016-12-20 20:14:25 +01:00
Juergen Hoeller
b9c4f1fa95
ResolvableType-based matching respects generic factory method return type
...
Includes consistent use of ResolvableType.resolve() wherever applicable.
Issue: SPR-15011
(cherry picked from commit 4c005e6 )
2016-12-19 01:12:14 +01:00
Juergen Hoeller
934fffec68
AutowiredAnnotationBeanPostProcessor tolerates annotated no-arg constructors
...
Issue: SPR-15005
(cherry picked from commit 8b5ee4e )
2016-12-19 01:01:59 +01:00
Juergen Hoeller
4571975414
Collection injection may refer back to factory methods on same bean again
...
Issue: SPR-14996
(cherry picked from commit 547b963 )
2016-12-19 01:01:16 +01:00
Juergen Hoeller
5fee5f39ea
Polishing
2016-12-01 14:13:23 +01:00
Juergen Hoeller
7ac9f92bc2
Various DefaultListableBeanFactory clarifications
...
* getBeanDefinitionNames defensively returns a copy of the bean definition names array.
* copyConfigurationFrom provides an independent AutowireCandidateResolver instance and copies a ConversionService and dependency comparator configuration as well.
* findAutowireCandidates only considers a self reference fallback for direct dependency declarations, not as a collection element.
Issue: SPR-14897
Issue: SPR-14921
Issue: SPR-14965
(cherry picked from commit ac5933a )
2016-12-01 14:11:08 +01:00
Juergen Hoeller
37f4f43726
Consistent 4.x style NoClassDefFoundError handling
...
Issue: SPR-14883
2016-11-07 19:13:00 +01:00
Juergen Hoeller
3d2e4c338c
Refined throwing of BeanCreationExceptions (and reflection exceptions)
...
Issue: SPR-14883
2016-11-07 18:47:54 +01:00
Juergen Hoeller
b42d731fc8
Consistent throwing of BeanCreationExceptions (and reflection exceptions)
...
Issue: SPR-14883
2016-11-07 16:56:35 +01:00
Juergen Hoeller
9e67ba83a5
Consistent support for early placeholder resolution in properties locations
...
Issue: SPR-10502
(cherry picked from commit 8053fef )
2016-11-03 14:53:46 +01:00
Juergen Hoeller
0ee8322947
Revised NoSuchBeanDefinitionException message and ResolvableType handling
...
Includes consistent quoting of qualified type names in related classes.
Issue: SPR-14831
(cherry picked from commit dc080cb )
2016-10-31 11:50:15 +01:00
Juergen Hoeller
997fb5fb48
DefaultListableBeanFactory allows early type matching against ScopedProxyFactoryBean
...
Issue: SPR-14816
(cherry picked from commit 3633244 )
2016-10-31 11:50:02 +01:00
Juergen Hoeller
fe19cfde28
Tightened StringValueResolver contract
...
Issue: SPR-14842
(cherry picked from commit 20419d7 )
2016-10-31 11:44:46 +01:00
Stephane Nicoll
4254b6d0e2
Polish contribution
...
Closes gh-1203
2016-10-26 09:50:48 +02:00
Vitalii
a211c2a955
Fix javadoc syntax
...
See gh-1203
2016-10-26 09:50:36 +02:00
Juergen Hoeller
9de28d640e
Polishing
...
(cherry picked from commit 3726c6f )
2016-10-21 12:59:59 +02:00
Juergen Hoeller
3346c594e4
YamlPropertiesFactoryBean consistently exposes String values
...
Issue: SPR-14737
(cherry picked from commit 74c6188 )
2016-09-26 16:21:03 +02:00
Stephane Nicoll
0dce570157
Add Qualified element on RootBeanDefinition
...
Improve RootBeanDefinition to specify an AnnotatedElement that holds
qualifier information. When such element is present, any qualifier that
it defines will be used to find a matching candidate.
Issue: SPR-14725
(cherry picked from commit 2b0bf9f )
2016-09-16 11:02:03 +02:00
Juergen Hoeller
54db496815
Polishing
...
(cherry picked from commit 404e7cd )
2016-09-13 23:43:58 +02:00
Juergen Hoeller
73bbe0849a
Revised IllegalArgumentException handling for Formatter parse calls
...
Issue: SPR-14661
(cherry picked from commit c69e6a3 )
2016-09-13 22:31:01 +02:00
Juergen Hoeller
09a0615df0
Consistent callbacks for TypeFilters, ImportSelectors and ImportBeanDefinitionRegistrars
...
Issue: SPR-14686
(cherry picked from commit 0c2e8a6 )
2016-09-13 22:30:29 +02:00
Juergen Hoeller
367949e914
PropertyValue stores source object in common superclass field
...
Issue: SPR-8337
(cherry picked from commit fa820bc )
2016-09-13 22:27:17 +02:00
Juergen Hoeller
026473280b
Polishing
2016-08-25 00:10:06 +02:00
Juergen Hoeller
a7849b2861
DefaultListableBeanFactory does not trigger early candidate creation ahead of primary bean selection
...
Issue: SPR-14611
(cherry picked from commit c4fcdb6 )
2016-08-24 23:37:59 +02:00
Juergen Hoeller
184285ab27
Polishing
2016-08-24 13:01:54 +02:00
Juergen Hoeller
f735d12247
UnsatisfiedDependencyException avoids duplicate nested exception message
...
Issue: SPR-14607
(cherry picked from commit 93d2287 )
2016-08-24 11:53:36 +02:00
Juergen Hoeller
7b11fa18a1
Revised NoSuchBeanDefinitionException message for proper array class names
...
Issue: SPR-14595
(cherry picked from commit 022b013 )
2016-08-17 17:47:14 +02:00
Juergen Hoeller
e6cefdca25
RootBeanDefinition accepts ResolvableType for target type hint
...
Issue: SPR-14580
(cherry picked from commit 4b06b60 )
2016-08-17 17:47:14 +02:00
Juergen Hoeller
a4a71a8904
Polishing
2016-08-11 23:45:50 +02:00
Juergen Hoeller
e23ac031ff
Avoid stack overflow in case of chained factory-bean references to FactoryBean class
...
Issue: SPR-14551
(cherry picked from commit 8b5d355 )
2016-08-11 23:25:41 +02:00
Juergen Hoeller
79a56967a1
PersistenceAnnotationBeanPostProcessor obtains default EntityManagerFactory via getBean(Class) algorithm
...
Issue: SPR-7549
(cherry picked from commit 6157fad )
2016-08-11 23:25:35 +02:00
Juergen Hoeller
4ada571384
PathEditor tries file system path in case of non-existing resource
...
Issue: SPR-14549
(cherry picked from commit d69afaa )
2016-08-08 14:22:46 +02:00
Juergen Hoeller
82f2983cd4
Consistent throwing of BeanNotOfRequiredTypeException even for existing proxy
...
Issue: SPR-14504
(cherry picked from commit 4a85309 )
2016-07-24 15:47:06 +02:00
Juergen Hoeller
36e1c82ef5
Backported refinements and polishing
2016-07-20 21:46:25 +02:00
Juergen Hoeller
503d65d570
Avoid JDK proxy against CGLIB Factory interface and assert required type when resolving dependency
...
Issue: SPR-14478
(cherry picked from commit 0e3f0bd )
2016-07-20 21:45:41 +02:00
Juergen Hoeller
fe17f8da41
BeanWrapperImpl.setBeanInstance correctly exposes root object
...
Issue: SPR-14474
(cherry picked from commit 938b56c )
2016-07-20 21:44:46 +02:00
Juergen Hoeller
be0b71ce31
Fixed typo: "occured"->"occurred"
...
(cherry picked from commit c43e749 )
2016-07-15 15:37:11 +02:00
Juergen Hoeller
f85d48dd31
Added PathEditor for NIO file system resolution
...
Issue: SPR-14436
(cherry picked from commit 23c2b6a )
2016-07-15 15:37:02 +02:00
Juergen Hoeller
92d78c10a2
Polishing (backported from master)
2016-07-06 17:13:18 +02:00
Juergen Hoeller
52065a736b
Avoid canonicalName call for already-seen bean name
...
Issue: SPR-14433
(cherry picked from commit 5890758 )
2016-07-06 16:09:32 +02:00
Juergen Hoeller
c4c941c43f
Convert comma-separated string into list of classes analogous to existing support for class array
...
Issue: SPR-14415
2016-06-30 14:02:51 +02:00
Juergen Hoeller
e15f7efff8
InjectionPoint propagated for shortcut bean name resolution as well
...
Issue: SPR-14400
2016-06-26 00:18:54 +02:00
Juergen Hoeller
d51c22a789
Consistent processing of empty values and catching of RuntimeExceptions for Formatters
...
Issue: SPR-14345
2016-06-09 10:49:15 +02:00
Juergen Hoeller
9131ebbea6
Synchronized access to method overrides (in particular for @Lookup)
...
Issue: SPR-14333
2016-06-06 17:15:56 +02:00
Juergen Hoeller
71463fb399
AbstractBeanFactory consistently guards add/remove operations against alreadyCreated Set
...
Issue: SPR-14269
2016-05-31 14:12:06 +02:00
Juergen Hoeller
9064d38e4c
AbstractBeanFactory.markBeanAsCreated() reliably clears merged bean definition only once
...
Issue: SPR-14269
2016-05-31 11:05:29 +02:00
Juergen Hoeller
cf0a0cd5d8
BeanWrapper avoids StringIndexOutOfBoundsException for incompletely quoted keys
...
Issue: SPR-14293
2016-05-30 15:15:27 +02:00
Juergen Hoeller
6efa058917
AbstractBeanFactory.markBeanAsCreated() reliably clears merged bean definition first
...
Issue: SPR-14269
2016-05-29 13:25:16 +02:00