"Reflection" refers to the low-level API with which you
can ask "what are the methods of this class", "what parameters
does this method accept", "what is the parent class of this
class", and so on.
"Introspection" is a higher-level
concept; it generally refers to using the reflection API to learn about a
class. For example, the javax.beans.Introspector class will give you the list
of JavaBeans properties of a class -- i.e., the pairs of matching "Y getX()"/"void
setX(Y)" methods.
No comments:
Post a Comment