Juergen Hoeller
d5732fed45
Polishing
3 years ago
Juergen Hoeller
4c7b04e32a
Use resolved factory method return type for supplier code generation
...
Closes gh-29598
3 years ago
Juergen Hoeller
e47978e168
Avoid unnecessary parameter name inspection for constructor-arg resolution
...
Closes gh-29612
3 years ago
Sam Brannen
ad60164911
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
a88dbbec98
Apply project formatting rules for ternary operator
...
Discovered via RegEx: ^\s+\?
3 years ago
Juergen Hoeller
8e5eb84da1
Consistently register CGLIB hints for lazy resolution proxy classes
...
Core JDK/CGLIB proxy registration code extracted to ClassHintUtils.
Closes gh-29584
3 years ago
Juergen Hoeller
459e8a1ea5
Deprecate LocalVariableTableParameterNameDiscoverer completely
...
LocalVariableTableParameterNameDiscoverer is not registered by default anymore now.
Java sources should be compiled with `-parameters` instead (available since Java 8).
Also retaining standard Java parameter names for all of Spring's Kotlin sources now.
Closes gh-29531
3 years ago
Sam Brannen
7fcd1de8e3
Use AssertJ's isEmpty() instead of hasSize(0)
...
Achieved via global search-and-replace.
3 years ago
Sam Brannen
d5b0b2b1a1
User AssertJ's hasSize() for arrays
...
Achieved via global search-and-replace.
3 years ago
Sam Brannen
36f7597f25
Use AssertJ's hasSize() for collections and maps
...
Achieved via a global search-and-replace.
3 years ago
Marten Deinum
c1dfde5ba4
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
3 years ago
Sam Brannen
796b8c1278
Polishing
3 years ago
Sam Brannen
cefd74555a
Polish contribution
3 years ago
wizard
e9555d4825
Polish AbstractAutowireCapableBeanFactory and use instanceof pattern matching
...
Closes gh-29499
3 years ago
Sam Brannen
abf3400c07
Use Assert.state() where appropriate
3 years ago
Sam Brannen
2aa78889d2
Use consistent wording in precondition error messages
3 years ago
Stephane Nicoll
711a63adca
Polish
...
See gh-29391
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
Juergen Hoeller
28cd39abf9
Remove unused AutowiredAnnotationBeanPostProcessor template methods
...
Closes gh-29487
3 years ago
Juergen Hoeller
aaeb5eb0d2
Avoid direct URL construction and URL equality checks
...
Closes gh-29486
3 years ago
Stephane Nicoll
da4b539f20
Stop generating generic type as Object for unresolved generics
...
Closes gh-29454
3 years ago
Juergen Hoeller
70bb785ed6
Turn nested generic FactoryBean type into resolved Class for fallback match
...
See gh-29385
3 years ago
Juergen Hoeller
0e9eab55ce
Unwrap nested generic type within FactoryBean target type if necessary
...
Closes gh-29385
3 years ago
Sam Brannen
f26a7dee97
Fix broken tests, update copyright dates, and polish
...
See gh-29414
3 years ago
Kulwant Singh
b2c8546013
Rely on automatic boxing/unboxing in tests
...
Closes gh-29414
3 years ago
Sam Brannen
d0b162a76c
Polishing
3 years ago
Juergen Hoeller
86d45578d9
Introduce findAllAnnotationsOnBean variant on ListableBeanFactory
...
Closes gh-29446
3 years ago
Sam Brannen
3438c47744
Polishing
3 years ago
Sam Brannen
34b1857236
Avoid String allocations with Assert.state()
3 years ago
Sébastien Deleuze
c14cbd07f4
Use non-null DateFormat for CustomDateEditor in tests
...
Closes gh-29419
3 years ago
Sébastien Deleuze
403cfefc28
Add AOT processing of bean aliases
...
This commit adds AOT processing of bean aliases.
Closes gh-29391
3 years ago
Juergen Hoeller
6b6cf1b4a2
Avoid decorated definition bypass for scoped proxy determination
...
GenericApplicationContext registers proxy hints without any SmartInstantiationAwareBeanPostProcessor involved as well.
Closes gh-29335
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
Stephane Nicoll
6d688e196d
Restore support of list of inner bean definitions
...
This commit restores the support of multiple bean definitions being
specified in a `List` as a property value or constructor argument.
Rather than handling inner bean definitions externally, there are now
supported by BeanDefinitionPropertiesCodeGenerator, and list of such
type is handled transparently.
Closes gh-29075
3 years ago
Johnny Lim
1ea3f49eba
Add missing since on setCurrentlyInvokedFactoryMethod()
...
See gh-29326
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
Juergen Hoeller
b796b52d4e
Extract SimpleBeanInfo adaptation into internal SimpleBeanInfoFactory
...
See gh-29320
3 years ago
Juergen Hoeller
bba313c2f5
Perform basic property determination without java.beans.Introspector
...
Closes gh-29320
3 years ago
Stephane Nicoll
061fa475ee
Avoid generated code in the javax package
...
This commit updates the existing logic to also exclude code generation
in the javax package.
Closes gh-29123
3 years ago
Sam Brannen
34e5aac0f5
Reintroduce factory method name in exception thrown from SimpleInstantiationStrategy
3 years ago
Sébastien Deleuze
42c3ac64ff
Remove spring.spel.ignore and spring.xml.ignore flags
...
This commit also removes ResourcePropertiesPersister which
was introduced in 5.3 specifically for spring.xml.ignore
flag and which is expected to be used only internally by
Spring Framework. DefaultPropertiesPersister should be used
instead.
Closes gh-29277
3 years ago
Johnny Lim
ced37d53b4
Polishing
...
Closes gh-29284
3 years ago
Stephane Nicoll
c74760540d
Polish
3 years ago
Stephane Nicoll
a16afe8e10
Describe the replacement use case for BeanRegistrationAotProcessor
...
Closes gh-29126
3 years ago
Juergen Hoeller
6027be5a39
Ignore overridden factory methods for unique candidate resolution
...
See gh-27920
3 years ago
Stephane Nicoll
0d5c78d992
Polish
3 years ago
Juergen Hoeller
b45a48461f
Polishing
3 years ago
Juergen Hoeller
aedef9321a
Merge AOT constructor and factory method resolution into ConstructorResolver
...
This moves related code into the same class, unifies candidate determination for constructors and factory methods, and gets rid of the package cycle around the hard-coded Autowired annotation check (which is implicitly coming from AutowiredAnnotationBeanPostProcessor via the determineCandidateConstructors SPI now). The API entry point for AOT pre-resolution purposes is in RegisteredBean.
Closes gh-27920
3 years ago