I have a dynamic list of variables for which I need to create getter and setter on the fly i.e. during runtime.
Have a look at cglib.