Imagine having the following class in a JEE project using a CDI container:
abstract class C <Implementer extends C> { ... }
What is the best way of getting a Class<Implementer>
object to use in C?
I imagine something along the lines of using a producer and injecting it with @Inject Class<Implementer> impl;
Any ideas are appreciated.
Aucun commentaire:
Enregistrer un commentaire