I'm hoping someone can point in the direction of some useful information pertaining to the best practices surrounding the use of Reflection in Java.
The current project I'm supporting uses Oracle ADF Faces and we've found that based on the objectives at hand certain pages end up with a vast number of components which need to be initialized in the backing beans. One of the developers on the team devised a solution using reflection in the bean constructor to initialize all of the member components for a particular page.
The concern has been raised that this may violate best practices and though it may save individual developers some time it may impact the performance of the application.
Has anyone utilized reflection in this way? Is it acceptable or should the developers manually write out the code?