Java's Reflection API's makes it possible to inspect classes, interfaces, fields and methods at runtime, without knowing the names of the classes, methods etc. at compile time. It is also possible to instantiate new objects, invoke methods and get/set field values using reflection.
References:
- Tutorials at jenkov.com
1 comments:
But sometimes reflection can be really cumbersome. There is a project called Mirror (http://projetos.vidageek.net/mirror/) that attempts to make a better way to use it.
Post a Comment
Note: Only a member of this blog may post a comment.