Imagine to have this class in some library, which gets added to another project as maven dependency:
class A {
// What can I do to replace B.class ?
@SomeAnnotation(B.class)
private String someValue;
}
I would like to make the class literal B.class some kind of configurable for the mvn project that uses this as dependency. Do I need to do it via reflection capabilities, what are my possibilities here?
Aucun commentaire:
Enregistrer un commentaire