Witam,
mam klase
class Dane{
private String imie;
private String nazwisko;
}
Jak pobrać jej wszystkie property. Inne pomysły niż refleksją ?
Pozdrawiam
Witam,
mam klase
class Dane{
private String imie;
private String nazwisko;
}
Jak pobrać jej wszystkie property. Inne pomysły niż refleksją ?
Pozdrawiam
Commons BeanUtils:
Dzieki
BeanUtils się przydało fragment poniżej
Dane dane = new Dane();
PropertyDescriptor beanProperties[] =
PropertyUtils.getPropertyDescriptors(dane);
Pozdrawiam
A commons beanutils robi to inaczej niz refleksja? ;-P