[background]
public class All {
Private List<CClass> listc;
private BClass b;
@customerAnnotation
Private String all1;
}
public class B {
@customerAnnotation
String A;
String B;
@customerAnnotation
Class C
...
}
public class C {
@customerAnnotation
String d;
String e;
}
public list<Field> myProcess(All bean) throws BusinessException;
question:
-
How to get all fields that it has marked by
@CustomerAnnotation
, includes reference object field? -
[field.getAnnotation(customerAnnotation.class)]
, it just can get the first top, but I want to get second, third... -
Is there any Framework or Utils can do that or help me to do that?
Aucun commentaire:
Enregistrer un commentaire