I know that this cannot be dependency injection in its purest form, but let's say I have to use:
@Inject Injector injector;
Using this injector, you can get all related instances:
- A parent class that each instance would inherit from?
- The interface that each instance will implement?
- Annotations that each instance would have?
I see the Injector # findBindingsByType () method, but I'm not sure if it can help in this regard.
source share