Monday, April 18, 2011

Java.lang.Reflect

Thanks to Dr. Bowring I was able to find a much nicer way to implement my two methods for the complexObsHandler and complexData object. Reflection is a feature in the Java programming language. It allows an executing Java program to examine or "introspect" upon itself, and manipulate internal properties of the program. For example, it's possible for a Java class to obtain the names of all its members and display them. So after googling I was able to find some sample code and a tutorial on oracle to find all the instances of the class using reflect, now I just need to implement them into Openmrs which has given me some trouble but I'm confident I will get it done.

No comments:

Post a Comment