reflection - String mapping to Java class fields -


do have idea of best practice or how can implement dynamical mechanism map string values java classes fields on runtime. this:

iquote_id - should mapped current quote class - getid() method

customer_name - should mapped current customer class - getname() method

i have tried use reflection i'm not sure if solution since have fields coming direct classes, other superclasses , lot of if's me solve it..and want other elegant way if exists.

how can build such mechanism? hint appreciated.thanks.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -