injectable icon indicating copy to clipboard operation
injectable copied to clipboard

Add support for injecting only specific groups

Open riccardopaltrinieri opened this issue 2 months ago • 1 comments

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 groups argument to load_injection_container
  • Updates the filter_by_group to 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

riccardopaltrinieri avatar Oct 24 '25 22:10 riccardopaltrinieri