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)
- Incorrect constructor details in the javadoc for ApplicationContextEvent
- Incorrect constructor details in the javadoc for ApplicationContextEvent HOT 1
- Incorrect constructor details in the javadoc for ApplicationContextEvent HOT 1
- Container Extension Points section of Spring Framework documentation refer to the wrong property name
- Container Extension Points section of Spring Framework documentation refer to the wrong property name HOT 1
- Container Extension Points section of Spring Framework documentation refer to the wrong property name HOT 1
- Add dedicated async dispatch support for MockMvcTester HOT 1
- Framework SSE documentation HOT 1
- WebFlux validation requires Servlet API since Spring Framework 6.1.3 HOT 7
- Custom Exception body empty HOT 1
- Bug in spring-aop 6.1 with kotlin and generic types. HOT 2
- Typo in Annotation-driven Listener Endpoints section of Spring Framework documentation
- Fail fast if a `@Bean` method declares `@Autowired` as well HOT 3
- Typo in Annotation-driven Listener Endpoints section of Spring Framework documentation HOT 1
- Typo in Annotation-driven Listener Endpoints section of Spring Framework documentation HOT 1
- Typo in Annotation-driven Listener Endpoints section of Spring Framework documentation HOT 1
- Typo in Annotation-driven Listener Endpoints section of Spring Framework documentation HOT 1
- Typo in Annotation-driven Listener Endpoints section of Spring Framework documentation HOT 1
- MockHttpServletRequestBuilder should merge URI from the parent if necessary
- Provide a way to determine if a context is in the process of being closed HOT 2
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.