Juergen Hoeller
8c80ec1138
Avoid NPE on BeanDescriptor access with SimpleBeanInfoFactory
...
Closes gh-29681
(cherry picked from commit d74191427e )
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
3 years ago
Sam Brannen
2e4d7e4ef9
Polishing
3 years ago
Marc Wrobel
c112bb0ae1
Fix and improve Javadoc in spring-beans
...
See gh-28803
3 years ago
Sam Brannen
d274e893a6
Remove superfluous static declaration for enum, annotation, & interface
3 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
Sam Brannen
a1c3efbb5f
Polish ManagedList[Tests] and ManagedSet[Tests]
4 years ago
Juergen Hoeller
83186b689f
Refine CachedIntrospectionResults property introspection
...
Closes gh-28445
4 years ago
Sam Brannen
e26d8839b3
Stop referring to features as Java 6/7 features where unnecessary
4 years ago
Juergen Hoeller
e441832e99
Accept WritableResource as required dependency type as well
...
Closes gh-15284
4 years ago
Stephane Nicoll
3017955eff
Update copyright year of changed file
...
See gh-28340
4 years ago
Koen Punt
22c82ff206
Fix method reference in Kotlin documentation
...
See gh-28340
4 years ago
Sam Brannen
a7cf19cec5
Improve documentation and matching algorithm in data binders
4 years ago
Juergen Hoeller
949c3d450c
Align plain accessor check
4 years ago
Juergen Hoeller
9f91168396
Restore ability to configure setClassLoader methods
...
Closes gh-28269
4 years ago
Brian Clozel
002546b3e4
Refine PropertyDescriptor filtering
...
Restrict property paths under `Class` and properties of types
`ClassLoader` or `ProtectionDomain`.
4 years ago
Sam Brannen
8fc744f4f4
Improve Javadoc for BeanExpressionResolver
4 years ago
Sam Brannen
64b64d9ba0
Stop referring to features as "Java 5" features
...
With a Java 8 baseline in place for quite some time now, it no longer
makes sense to refer to features such as annotations as "Java 5
annotations".
This commit also removes old `Tiger*Tests` classes, thereby avoiding
duplicate execution of various tests.
4 years ago
danthonywalker
50771237cc
Fix ListableBeanFactory#findAnnotationOnBean extension return type
...
Closes gh-26908
4 years ago
Sam Brannen
9fbf5dc945
Use String#lastIndexOf(int) where possible
4 years ago
Sam Brannen
6e2e45d18f
Apply @SafeVarargs to ManagedMap.ofEntries(...)
4 years ago
Sam Brannen
887389d341
Clarify behavior for generics support in BeanUtils.copyProperties()
...
Since Spring Framework 5.3, BeanUtils.copyProperties() honors generics
in the source and target property types (see gh-24187); however, this
refinement of the contract was not properly documented prior to this
commit. In addition, the refinement can be a breaking change for users
who were relying on the previous unreliable behavior.
This commit therefore clarifies the behavior for generics support in
BeanUtils.copyProperties() and introduces a table of example matches
and mismatches when generics are involved.
Closes gh-27259
4 years ago
Sam Brannen
d67034f99b
Document semantics for externally managed init/destroy methods
...
This commit introduces Javadoc to explain the difference between
init/destroy method names when such methods are private, namely that a
private method is registered via its qualified method name; whereas, a
non-private method is registered via its simple name.
See gh-28083
4 years ago
Sam Brannen
f96872404d
Ensure private init/destroy method is invoked only once
...
Closes gh-28083
4 years ago
Sam Brannen
a7d5fbfbea
Fix log messages for init/destroy method registration
4 years ago
Stephane Nicoll
d2c7dfb79e
Add convenience factory method for Managed[List|Set|Map]
...
Closes gh-28026
4 years ago
Sam Brannen
669b05dc1d
Allow AutowiredAnnotationBeanPostProcessor to compile on JDK 11
4 years ago
Juergen Hoeller
bc9cd9a687
Find interface method even for late-bound interface declaration in subclass
...
Closes gh-27995
4 years ago
Sam Brannen
f8a5a8d7be
Use modern language features in tests
4 years ago
Sam Brannen
df263d01b9
Use idiomatic AssertJ assertions for true, false, and null
4 years ago
Sam Brannen
f04e9a8366
Deprecate getBeanFactory() method in AbstractBeanDefinitionReader
...
The getBeanFactory() method has been obsolete for more than 13 years
since it was superseded by the getRegistry() method in the
BeanDefinitionReader interface.
Closes gh-27875
4 years ago
Sam Brannen
c1606c5a5e
Polishing
4 years ago
Juergen Hoeller
ca84559588
Provide findAnnotationOnBean variant with allowFactoryBeanInit flag
...
Closes gh-27796
4 years ago
Juergen Hoeller
14f24f43d7
Polishing
4 years ago
Juergen Hoeller
d7e0eed8d2
Clarify getBeanProvider(ResolvableType) semantics for unresolved generics
...
Closes gh-27727
4 years ago