mardi 27 septembre 2016

Change annotation parameter value [duplicate]

This question already has an answer here:

Suppose that I have the following annotation that is used on method

@MyAnnotation(value1 = "some value1", value2="some value2")

Is it possible to change the value of the first parameter of this anntation using reflection utils? If yes, then how can I accomplish it?





Aucun commentaire:

Enregistrer un commentaire