Juergen Hoeller
2b9cea618f
Propagate arguments for dynamic prototype-scoped advice
...
Closes gh-28407
(cherry picked from commit 43107e7eb18cdd2d02661421b5cdaf90e5c19c30)
2 years ago
Juergen Hoeller
b2bdc7de30
Polishing
2 years ago
Juergen Hoeller
d54e101f00
PathEditor considers single-letter URI scheme as NIO path candidate
...
Closes gh-29881
(cherry picked from commit c56c3045364a93d135309536cc905e56a2eae38d)
2 years ago
Juergen Hoeller
de0cb53394
Polishing
...
(cherry picked from commit 925fa0272b76c765d3f9dee2bd5d54c66bd849c9)
2 years ago
Juergen Hoeller
1bf5d8b9e5
Avoid ResolvableType for simple assignability check in copyProperties
...
Closes gh-27246
(cherry picked from commit 09aa59f9e79e19a2f09e66002c665b6a5a03ae20)
2 years ago
Juergen Hoeller
3da7a35a91
Test factory-bean/method placeholders as well
...
See gh-20189
(cherry picked from commit 8b3ddeed056c743ab8e5845a37cbfb06a775d1a5)
2 years ago
Juergen Hoeller
fc085e8663
Reinstate Introspector.flushFromCaches() call for JDK ClassInfo cache
...
Closes gh-27781
2 years ago
Juergen Hoeller
b9482375b7
Sort multiple @Autowired methods on same bean class via ASM
...
Closes gh-30359
(cherry picked from commit 7e6612a920219f2dd811f55ec0d6a1d282b15aee)
2 years ago
Juergen Hoeller
840bd574db
Polishing
...
(cherry picked from commit fdf1418dfbbdd7c06945d6223594c509bd194294)
2 years ago
Juergen Hoeller
a7b7466274
Polishing
3 years ago
Juergen Hoeller
0f33f79c05
Avoid synchronization for shortcut re-resolution
...
See gh-30883
(cherry picked from commit 161a717639 )
3 years ago
Juergen Hoeller
0b4b313bae
Cache DependencyDescriptor per autowired constructor argument
...
Aligned with shortcut handling in AutowiredAnnotationBeanPostProcessor.
Includes minor MethodInvoker optimization for pre-resolved targetClass.
Closes gh-30883
(cherry picked from commit 6183f0684684912802021556dce916ba26228c26)
3 years ago
Sam Brannen
0a4f290f0f
Polish DefaultSingletonBeanRegistryTests
3 years ago
Sam Brannen
6ea4d3794a
Further simplify DefaultSingletonBeanRegistry.isDependent()
...
See gh-30841
3 years ago
bnbakp0582
85eec5d344
Simplify DefaultSingletonBeanRegistry.isDependent()
...
Move `alreadySeen` handling out of for-loop.
Closes gh-30841
3 years ago
Juergen Hoeller
f2df10c7fe
Polishing
3 years ago
Juergen Hoeller
6dde13f597
Refresh cached value after unexpected mismatch (e.g. null vs non-null)
...
In addition to the previously addressed removal of bean definitions, this is able to deal with prototype factory methods returning non-null after null or also null after non-null. Stale cached values are getting refreshed rather than bypassed.
Closes gh-30794
(cherry picked from commit 0226580773 )
3 years ago
Sam Brannen
45f747fae1
Clean up warnings in tests
3 years ago
Sam Brannen
2e51aa250e
Update copyright headers
3 years ago
Sam Brannen
e34a7baeb3
Remove code duplication in RootBeanDefinition
3 years ago
Juergen Hoeller
9decbf2158
Polishing
3 years ago
Juergen Hoeller
540d0d9345
Avoid Autowired shortcut resolution for NullBean values
...
Includes getBean documentation against NullBean values.
Closes gh-30485
(cherry picked from commit 8b8d1474803437da4bf9c0830a13b1bcc85dff83)
3 years ago
Juergen Hoeller
120d512ff6
Polishing (backported from main)
3 years ago
Sam Brannen
3ddf183922
Update copyright headers
3 years ago
Brian Clozel
d00fd4c502
Allow runtime compatibility with SnakeYaml 2.0
...
This commit ensures that SnakeYaml 2.0 is compatible at runtime with
Spring Framework 5.3.x with the `YamlProcessor` support.
The baseline version for SnakeYaml remains the same.
Closes gh-30097
3 years ago
Juergen Hoeller
6a81ed3a50
Polishing
3 years ago
Sam Brannen
9067ccab2d
Update copyright headers
3 years ago
Juergen Hoeller
960f6fb936
Add missing warn level check (backported from main)
3 years ago
Juergen Hoeller
42e7318cbb
Polishing
3 years ago
Juergen Hoeller
8c80ec1138
Avoid NPE on BeanDescriptor access with SimpleBeanInfoFactory
...
Closes gh-29681
(cherry picked from commit d74191427eca4420d2d0d9a8e69cd0f5d25204a5)
3 years ago
Sam Brannen
41a6b7ec20
Update copyright headers for source code changed since August 2022
...
The changes in this commit were performed using the newly introduced
update_copyright_headers.sh script.
3 years ago
Sam Brannen
109b00d24d
Avoid use of deprecated Character/Double constructors in tests
3 years ago
Juergen Hoeller
0e33537d9d
Consistent use of DefaultParameterNameResolver in tests
3 years ago
Marten Deinum
1ee3777ac7
Fix link to Bean Utils Light Library in BeanUtils Javadoc
...
The URL for the BULL library has changed (not sure when, probably way back).
This updates it to the correct location.
Closes gh-29534, gh-29536
3 years ago
Juergen Hoeller
ec3f59e6fe
Allow AutoCloseable dereferences on original AutoCloseable beans
...
Closes gh-29480
3 years ago
Juergen Hoeller
49ee4a4fdf
Deprecated unused findAutowireCandidates template method (removed in 6.0)
...
See gh-29487
3 years ago
Sébastien Deleuze
c14cbd07f4
Use non-null DateFormat for CustomDateEditor in tests
...
Closes gh-29419
3 years ago
Juergen Hoeller
4b0bf16389
Select ambiguous write method based on read method (matching its return type)
...
Also avoids unnecessary checks in name-based PropertyDescriptor constructor.
See gh-29320
3 years ago
Juergen Hoeller
33023b240f
Provide optional SimpleBeanInfoFactory for better introspection performance
...
Closes gh-29330
3 years ago
Juergen Hoeller
c407dc3df8
Reset/rebuild BeanPostProcessorCache within full synchronization
...
Closes gh-29299
3 years ago
Stephane Nicoll
0d2bfc926f
Apply consistent ordering in hierarchical contexts
...
Previously, if `@Order` is specified on a `@Bean` method, and the
candidate bean is defined in a parent context, its order wasn't taken
into account when retrieving the bean from a child context.
This commit makes sure the metadata of a bean is taken into
consideration in all cases.
Closes gh-29105
3 years ago
Marc Wrobel
bd3499671c
Fix typos in test code
...
This commit fixes typos in test class names, test method names, and
test variable names.
Closes gh-28807
4 years ago
Sam Brannen
2e4d7e4ef9
Polishing
4 years ago
Marc Wrobel
c112bb0ae1
Fix and improve Javadoc in spring-beans
...
See gh-28803
4 years ago
Sam Brannen
d274e893a6
Remove superfluous static declaration for enum, annotation, & interface
4 years ago
Sam Brannen
2c3243c93c
Trim string input in PropertyEditors where whitespace is irrelevant
...
Closes gh-28755
4 years ago
Sam Brannen
eeac150030
Polish contribution
...
See gh-28616
4 years ago
Fabian Gonzalez
0ce9516aef
Avoid eager instantiation of non-singleton FactoryBean in getBeanNamesForType
...
Closes gh-28616
4 years ago
Sam Brannen
e47cc44947
Polish DefaultListableBeanFactoryTests
4 years ago
Sam Brannen
1beb7068f6
Use new AssertJ exception assertions
4 years ago