In my own multi-purpose Java framework, how to use dependency injection without depending on a concrete DI container? That is, any application should be able to use my framework, no matter whether it uses CDI, Spring or Guice itself.
All of the following should be possible:
- for my framework to inject dependencies into the application
- for the application to inject dependencies into my framework
- for a component of my framework to inject dependencies into another component
Aucun commentaire:
Enregistrer un commentaire