Supposing I have following interface
public interface Handler {
void handle(Object o);
}
and implementations
public class PrintHandler implements Handler {
void handle(Object o) {
System.out.println(o);
}
}
public class YetAnotherHandler implements Handler {
void handle(Object o) {
// do some stuff
}
}
I want to inject all Handler
subclasses into some class
public class Foo {
private List<Handler> handlers;
}
How can I achieve this using Quarkus?