How can I use JSR-299 CDI to input beans (not annotated) from external libraries?
Examples:
The X interface and its implementations come from a third-party library. How can I decide which implementation to use?
class A { @Inject private X x; }
What if I had several classes using the X interface, but with different implementations?
class A { @Inject private X x;
java java-ee dependency-injection cdi jsr299
deamon
source share