You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, the configuration above results in an exception:
Caused by: java.lang.IllegalStateException: Expecting only 1 bean match but have multiple matching beans org.jdbi.v3.core.Jdbi@5a2035e1 and org.jdbi.v3.core.Jdbi@5a2035e1. Maybe need a rebuild is required after adding a @Named qualifier?
It forces all beans of the type to be annotated with @Named, which is not always convenient. I suggest supporting a default bean that can remain un-@Named.
Same story with @Qulifier.
The text was updated successfully, but these errors were encountered:
Yes, this issue should be resolved as part of #543 ... (which is having a default for the unqualified but also preferring "same module" wiring for the multi-module case). So yes I am expecting the PRs in progress for that issue to also resolve this issue.
…ed bean)
In the case where we have 2 beans of the same type and one has no qualifier,
then when injecting a bean with no qualifier specified then prefer to wire
the bean with no qualifier.
Example: In the MegaStoreManager example we have NoNameStore as a bean with
no name qualifier and that is preferred for the noQualifier injection point.
…ed bean) (#562)
In the case where we have 2 beans of the same type and one has no qualifier,
then when injecting a bean with no qualifier specified then prefer to wire
the bean with no qualifier.
Example: In the MegaStoreManager example we have NoNameStore as a bean with
no name qualifier and that is preferred for the noQualifier injection point.
I am wondering if it is possible to support the next configuration
At the moment, the configuration above results in an exception:
It forces all beans of the type to be annotated with
@Named
, which is not always convenient. I suggest supporting adefault
bean that can remain un-@Named
.Same story with
@Qulifier
.The text was updated successfully, but these errors were encountered: