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
@stortiz-lifeworks Have a look here: #14
Had to drop python3.6 support as I am short on time and actually lifecycle of 3.6 ends in december so I dont think I care anymore about such an old version.
I have tested it and that is the requested feature.
But in the example added to the documentation there is a "register=False" argument passed to the decorator that is raising an exception when used, and that does not appear in the documentation.
A very useful feature when using Type based injection would be the ability to inject all the implementations for a given interface as a list.
Here is an example of this same feature from the Java Spring documentation:
https://docs.spring.io/spring-framework/docs/4.3.12.RELEASE/spring-framework-reference/htmlsingle/#beans-autowired-annotation
The way it would be used would be as follows:
In the snippet above, the parameter
services
oflist_vals
would receive the objects of both classes implementingIMyService
.The text was updated successfully, but these errors were encountered: