Juergen Hoeller
f2889b1b43
Consistent support for generic FactoryBean type matching
...
Closes gh-32590
See gh-32489
2 years ago
Juergen Hoeller
22328905da
Do not extract FactoryBean generic in case of targetType mismatch
...
Closes gh-32489
2 years ago
Sébastien Deleuze
4a7c24d90f
Refine null-safety
...
See gh-32475
2 years ago
Stéphane Nicoll
7a74e45946
Make use of bean definition overriding more visible
...
This commit makes the use of bean definition overriding more visible and
prepare for a deprecation of the feature in the next major release.
As of this commit, use of bean definition overriding logs at INFO level.
The previous log level can be restored by setting the
allowBeanDefinitionOverriding flag explicitly on the BeanFactory (or
via the related ApplicationContext).
A number of tests that are using bean overriding on purpose have been
updated to set this flag, which will make them easier to find once we
actually deprecate the feature.
Closes gh-31288
2 years ago
Sébastien Deleuze
5b660da52d
Perform NullAway build-time checks in more modules
...
This commit enables null-safety build-time checks in:
- spring-jdbc
- spring-r2dbc
- spring-orm
- spring-beans
- spring-aop
See gh-32475
2 years ago
Sébastien Deleuze
1b563f8ba4
Refine null-safety in more modules
...
This commit refines the null-safety in:
- spring-jdbc
- spring-r2dbc
- spring-orm
- spring-beans
- spring-aop
See gh-32475
2 years ago
Felix
05b15812bb
Apply instanceof pattern matching in RootBeanDefinition
...
Closes gh-32520
2 years ago
Juergen Hoeller
c531a8a705
Nullability refinements and related polishing
...
See gh-32475
2 years ago
Sam Brannen
e1b1435a00
Stop referring to JDK 1.5 plus polishing
2 years ago
Sam Brannen
04e69bdb26
Polish contribution
...
Closes gh-32412
2 years ago
Mikaël Francoeur
3e48031601
Reject null return value from MethodReplacer for primitive return type
...
This commit throws an exception instead of silently converting a null
return value from a MethodReplacer to a primitive 0/false value.
See gh-32412
2 years ago
Sam Brannen
f285971cb3
Polishing
2 years ago
Stéphane Nicoll
4983a802a7
Polish "Fix Javadoc"
...
See gh-32403
2 years ago
Maksim Sasnouski
abdccffa39
Fix Javadoc
...
This commit fixes various Javadoc issues across the code base.
See gh-32403
2 years ago
Sam Brannen
20be9e150c
Polishing
2 years ago
Juergen Hoeller
c1287d48e2
Polishing
2 years ago
Sam Brannen
ae6c64abc5
Fix Javadoc errors
2 years ago
Juergen Hoeller
c9e85ec297
Introduce callback for singleton availability
...
Closes gh-21362
2 years ago
Juergen Hoeller
14a461e795
Consider type-level qualifier annotations for transaction manager selection
...
Closes gh-24291
2 years ago
Juergen Hoeller
b5ca646431
Leniently tolerate late bean retrieval during destroySingletons()
...
Closes gh-22526
Closes gh-29730
2 years ago
Yanming Zhou
246ebd24bf
Add missing method BeanDefinitionBuilder.setFallback()
2 years ago
Sébastien Deleuze
45c21042f6
Optimize Kotlin inline class checks
...
This commit fixes a performance regression caused by gh-31698,
and more specifically by KClass#isValue invocations which are slow since
they load the whole module to find the class to get the descriptor.
After discussing with the Kotlin team, it has been decided that only
checking for the presence of `@JvmInline` annotation is enough for
Spring use case.
As a consequence, this commit introduces a new
KotlinDetector#isInlineClass method that performs such check, and
BeanUtils, CoroutinesUtils and WebMVC/WebFlux InvocableHandlerMethod
have been refined to leverage it.
Closes gh-32334
2 years ago
Juergen Hoeller
aeb77cf4e1
Restore correct threadWithLock check without isInfoEnabled()
...
See gh-23501
2 years ago
Juergen Hoeller
17b2087198
Introduce background bootstrapping for individual singleton beans
...
Closes gh-13410
Closes gh-19487
See gh-23501
2 years ago
Juergen Hoeller
479879c53a
Polishing
2 years ago
Juergen Hoeller
2e57603310
Try type conversion for unique fallback write method as well
...
Closes gh-32329
See gh-32159
2 years ago
Juergen Hoeller
567547b63c
Skip shortcut resolution for non-standard dependency descriptors
...
Closes gh-32326
See gh-28122
2 years ago
Juergen Hoeller
58b8330e8d
Consistent documentation of defaults and related methods
...
See gh-32308
2 years ago
Sam Brannen
b0d08fe2d4
Spring cleaning: avoid deprecation warnings
2 years ago
Sam Brannen
122372c580
Spring cleaning: update copyright headers
2 years ago
Sam Brannen
4339c8eac2
Spring cleaning: use diamond operator
2 years ago
Juergen Hoeller
3ddc512108
Add missing @Override annotations
2 years ago
Yanming Zhou
76eb5b8c19
Replace redundant javadoc with {@inheritDoc} for AbstractBeanDefinition
2 years ago
Juergen Hoeller
41433d445e
Polishing
2 years ago
Juergen Hoeller
7ffeb59b40
Polishing
2 years ago
Sam Brannen
bfed6a3bc5
Clean up warnings in Gradle build
2 years ago
Sam Brannen
b9c304b890
Polish contribution
...
See gh-32291
2 years ago
Patrick Strawderman
e1a32d4ba9
Avoid resizing of fixed-size HashSet/LinkedHashSet variants
...
Add helpers to CollectionUtils for building HashSets and LinkedHashSets
that can hold an expected number of elements without needing to
resize/rehash.
Closes gh-32291
2 years ago
Sam Brannen
3fb170058f
Polish contribution
...
See gh-32294
2 years ago
Patrick Strawderman
f9fe8efb2e
Use ConcurrentHashMap.newKeySet
...
In places where a ConcurrentHashMap was used as a set by wrapping it
with Collections.newSetFromMap, switch to just using the set returned
by ConcurrentHashMap.newKeySet directly.
Closes gh-32294
2 years ago
Juergen Hoeller
889c4e0ff5
Reject multiple primary candidates in ancestor factory as well
...
Closes gh-26612
2 years ago
Juergen Hoeller
93f0ec2fa1
Polishing
2 years ago
Juergen Hoeller
63ca8d5d17
Consider defaultCandidate flag in case of no annotations as well
...
See gh-26528
2 years ago
Juergen Hoeller
bc01e3116f
Ignore fallback bean for shortcut resolution
...
See gh-26241
See gh-28122
2 years ago
Juergen Hoeller
480051a21c
Introduce fallback flag and annotation (as companion to primary)
...
Closes gh-26241
2 years ago
Juergen Hoeller
a8fb16b47c
Introduce defaultCandidate flag (for plain type vs. qualified match)
...
Closes gh-26528
2 years ago
Juergen Hoeller
a001319f1f
Add additional shortcut for qualifier value matching target bean name
...
Closes gh-17677
See gh-28122
2 years ago
Juergen Hoeller
4a02893c31
Avoid early singleton inference outside of original creation thread
...
See gh-23501
2 years ago
Juergen Hoeller
902e5707a8
Revise singleton registry for lenient locking (fallback instead of deadlock)
...
Closes gh-23501
2 years ago
Juergen Hoeller
c6146ea2db
Introduce shortcut for declared dependency name matching target bean name
...
Closes gh-28122
2 years ago