injectable
injectable copied to clipboard
Add support for injecting only specific groups
To be able to select specific dependencies in the entry point of the application without having to find and change all the Autowired annotations, this PR:
- Allows passing the
groupsargument toload_injection_container - Updates the
filter_by_groupto check the container groups as well
I think this feature might come in handy when developing, running or deploying with different environments, for example using the groups "dev"/"mock" for some providers, "SQL"/"MongoDB" for databases, etc..
Unfortunately I wasn't able to run make docs, and I'm not sure what is needed on that aspect
Quality Gate passed
Issues
1 New issue
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code