Juergen Hoeller
dfa8a7c358
Polishing
2017-02-16 15:57:52 +01:00
Juergen Hoeller
da7d79b3a1
Test for ObjectFactory injection at constructor level
...
Issue: SPR-15222
(cherry picked from commit 65d8d69 )
2017-02-10 11:46:32 +01:00
Juergen Hoeller
3304efd64d
Consistent type variable resolution for arrays/collections (in particular at field level)
...
Deprecating GenericCollectionTypeResolver in favor of direct ResolvableType usage.
Issue: SPR-15160
(cherry picked from commit 5e946c2 )
2017-01-24 19:31:41 +01:00
Juergen Hoeller
f79baec5ff
Polishing
...
(cherry picked from commit 46fc7fb )
2017-01-16 23:14:12 +01:00
Juergen Hoeller
24ebd15f9c
Introspect FactoryBean class declaration if no early instantiation possible
...
Issue: SPR-15125
(cherry picked from commit 32fc855 )
2017-01-16 22:43:18 +01:00
Juergen Hoeller
5afc3a3a50
Map resolution for multiple beans applies to plain Map interface declaration only
...
Issue: SPR-15117
(cherry picked from commit 8084da5 )
2017-01-12 22:50:04 +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
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
7e7504f5ea
Polishing
2016-11-03 23:20:33 +01: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
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
1932a9d729
Polishing
...
(cherry picked from commit de91b1a )
2016-08-17 21:30:30 +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
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
ad8ebbaa05
Test injection for @Lookup-declaring bean
...
Issue: SPR-14550
(cherry picked from commit d128830 )
2016-08-08 14:22:42 +02:00
Juergen Hoeller
36e1c82ef5
Backported refinements and polishing
2016-07-20 21:46:25 +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
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
cf0a0cd5d8
BeanWrapper avoids StringIndexOutOfBoundsException for incompletely quoted keys
...
Issue: SPR-14293
2016-05-30 15:15:27 +02:00
Juergen Hoeller
ce2f28da49
CachedIntrospectionResults explicitly introspects implemented interfaces (for Java 8 default methods)
...
Issue: SPR-14198
2016-04-27 15:39:00 +02:00
Juergen Hoeller
5c1d3fca15
BeanFactory does not unwrap java.util.Optional for top-level bean
...
Issue: SPR-14121
2016-04-07 14:18:30 +02:00
Juergen Hoeller
edea66a967
Further tests for getBeanNamesForType(ResolvableType)
...
Issue: SPR-14097
2016-04-04 14:58:30 +02:00
Juergen Hoeller
852212d0c5
Polishing
2016-03-24 19:57:54 +01:00
Juergen Hoeller
517ebd1d3e
Consistent formatting
2016-03-24 19:22:50 +01:00
Juergen Hoeller
b6dd8a9233
Consistent UnsatisfiedDependencyException exposure with injection point metadata
...
Issue: SPR-13968
2016-02-25 21:36:49 +01:00
Juergen Hoeller
ed98393fb2
SmartObjectFactory renamed to ObjectProvider (extends ObjectFactory)
...
Issue: SPR-13943
Issue: SPR-13956
2016-02-23 14:30:30 +01:00
Juergen Hoeller
a7ad49adcf
Placeholder configurers allow for trimming of property values
...
Issue: SPR-5839
2016-02-19 19:19:39 +01:00
Juergen Hoeller
890819f886
SmartObjectFactory provides getObject(args) variant as well
...
Issue: SPR-13956
2016-02-19 14:39:55 +01:00
Juergen Hoeller
1b53edfc5e
DefaultListableBeanFactory skips fallback match attempt for Collection/Map beans
...
Issue: SPR-13963
2016-02-19 00:05:28 +01:00
Juergen Hoeller
343bb2f130
Support for SmartObjectFactory injection points with programmatic optionality and lenient not-unique handling
...
Issue: SPR-13943
2016-02-12 17:45:25 +01:00
Juergen Hoeller
903ae48382
DisposableBeanAdapter ignores bridge method conflicts
...
Issue: SPR-13922
2016-02-08 13:20:48 +01:00
Sam Brannen
81f68463ec
Clean up warnings in Gradle build
2016-02-03 18:42:30 +01:00
Juergen Hoeller
4a0fa69ce4
Injection support for Collection/Map beans and self references
...
Issue: SPR-13585
Issue: SPR-12180
Issue: SPR-7915
Issue: SPR-8450
2016-01-25 21:25:48 +01:00
Stephane Nicoll
0d04af14f8
Refine test
...
Issue: SPR-13837
2016-01-19 15:11:58 +01:00
Stephane Nicoll
9b9df6a744
Add test
...
Issue: SPR-13837
2016-01-19 14:40:52 +01:00
Juergen Hoeller
bb3ff25cad
Polishing
2015-12-21 23:07:32 +01:00
Juergen Hoeller
b28310d0b9
Polishing
2015-12-21 18:42:49 +01:00
Juergen Hoeller
cad2ce0ac2
ConstructorResolver always uses arguments when completely provided
...
Issue: SPR-13808
2015-12-21 15:11:40 +01:00
Juergen Hoeller
b70af3bf57
Polishing
2015-12-01 14:10:46 +01:00
Juergen Hoeller
998da2f45c
Document destruction callback behavior for inner beans in case of scope mismatch
...
This commit undoes the previous refinement and rather documents the original behavior.
Issue: SPR-13739
2015-11-30 21:57:54 +01:00
Juergen Hoeller
7104076e19
Avoid Scope.registerDestructionCallback for inner beans in case of scope mismatch
...
This commit refines getMergedBeanDefinition's scope adaptation algorithm for inner beans, never leaving a custom scope within a containing bean of a different scope. The inner bean's scope will either be aligned with the containing bean's scope (matching the effective state) or be switched to prototype in case of an outer singleton (indicating that no singleton state management is desired).
Issue: SPR-13739
2015-11-30 20:10:26 +01:00
Juergen Hoeller
5386e8a9e9
DefaultListableBeanFactory skips resolvableDependencies check for null value
...
Issue: SPR-13599
2015-10-26 22:45:36 +01:00
Stephane Nicoll
b7c2881a4f
Clarify javadoc
...
The Javadoc wrongly referred to a behaviour that is not (and should not
be) implemented. List items are split into indexed keys and the
comma-separated value is not retained.
Issues: SPR-13257
2015-10-02 14:17:54 +02:00
Sam Brannen
d5ee787e1e
Migrate JUnit 3 tests to JUnit 4
...
This commit migrates all remaining tests from JUnit 3 to JUnit 4, with
the exception of Spring's legacy JUnit 3.8 based testing framework that
is still in use in the spring-orm module.
Issue: SPR-13514
2015-09-27 21:17:51 +02:00
Juergen Hoeller
097bcfb997
DefaultListableBeanFactory switches to thread-safe copying for names collections if necessary
...
Issue: SPR-13493
Issue: SPR-13123
Issue: SPR-12503
2015-09-25 15:20:40 +02:00
Juergen Hoeller
d4a23b81e9
Properties values get properly converted to generic Map types (fixing 4.x regression without use of ConversionService)
...
Issue: SPR-13256
2015-08-31 17:20:05 +02:00
Juergen Hoeller
ff9fb9aa88
BeanWrapperImpl.getPropertyDescriptor allows for nested paths again
...
Issue: SPR-13403
2015-08-28 11:17:42 +02:00
Juergen Hoeller
74e6213baf
Lookup method definitions can be overridden in child beans
...
Issue: SPR-13388
2015-08-25 17:08:49 +02:00