mardi 1 mars 2016

Is there a way to get the value passed to a method parameter using reflection?

Usage:

public void xxxMethod(@Header("headertoset") String id){
    ....
}

How to get the value using java reflection during runtime?

Expected:

p s v m(){
   new XXObject().xxxMethod("sample-id");

//How to get the value of 'id' passed to method parameter by using the Header.class Annotations ??
}





Aucun commentaire:

Enregistrer un commentaire