Comments (3)
@wilkinsona for 6.1.7, is there anything you'd expect the core container to do here specifically, beyond the general target type support that it has already? I'm afraid there is not much we can do about mismatches between wildcard target types and specific generics requested, as in the Spring Data scenario - with getBeanNamesForType(ResolvableType)
, that is. Fallback matches only kick in for resolveDependency
, as discussed, where the starting point is getBeanNamesForType(Class)
.
from spring-framework.
Given that fallback matching only kicks in for resolveDependency
(that, as discussed elsewhere, we can't easily use as we may not have a field or method parameter to back the dependency), I'm not sure that there is in a maintenance release. I'd welcome an API that essentially combines getBeanNamesForType
and resolveDependency
so that a single method call can give us the full answer including fallback matching but I suspect that's too much for 6.1.x.
from spring-framework.
To summarize our current understanding here: The best we have on offer at the moment is resolveNamedBean(Class)
as an alternative to DependencyDescriptor
-based resolveDependency
for whenever there is just a Class available, or to perform getBeanNamesForType(Class)
and mimic the dependency resolution on top of that.
Addressing such a scenario with a first-class entry point is certainly rather a 6.2 topic.
from spring-framework.
Related Issues (20)
- HttpWebHandlerAdapter needs possibility to manipulate requests before their handle HOT 2
- Support `@TestBean` factory methods defined in interfaces
- Simplify BeanRegistrationsAotProcessor to avoid unnecessary BeanRegistrationKey
- `ReactorResourceFactory` not working with CRaC onRefresh checkpoint HOT 10
- Add support for `BeanPostProcessor` defined in Kotlin `companion object`
- Fix `RegisterReflectionForBinding` Javadoc
- RestClient Bean can not call API with method GET contains body HOT 2
- `multipartData()` throws an exception when `WebFilter` reads the request body. HOT 4
- a question for ScheduledAnnotationBeanPostProcessor HOT 1
- `@TestBean` factory method not found in multi-level `@Nested` hierarchy
- Exception mapping does not work as expected when plugging in ReactorNettyClientRequestFactory into RestTemplate and RestClient HOT 3
- Allow json content to be converted using AssertJ's AssertFactory
- ConcurrentHashMap.computeIfAbsent used in AdvisedSupport can cause virtual thread pinning HOT 5
- ClassPathScanningCandidateComponentProvider does not work when the app started in native-image HOT 1
- @CacheEvict condition uses wrapper comparison instead of actual objects
- The variable decorated is repeatedly named in the builder() method of WebHttpHandlerBuilder HOT 1
- Spring doubles backslash characters when loading maven property in application.yml leading to StringUtils.cleanPath issues HOT 1
- HttpServletResponse for REQUEST dispatcher is wrapped in async wrapper. HOT 9
- @Valid annotations on container elements for handler argument validation not supported
- NamedParameterJdbcTemplate execute complex Insert Query Fails HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-framework.