Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / JavaBeans / February 2004

Tip: Looking for answers? Try searching our database.

Reflection vs Introspection

Thread view: 
jac - 26 Feb 2004 09:53 GMT
Hi to all,
I don't understand a thing: which is the difference between reflection and
introspection?
I know reflection let a program get some runtime info about itself, but this
means that I can't reflect a class of another program?

Thanks in advance
John C. Bollinger - 26 Feb 2004 13:56 GMT
> Hi to all,
> I don't understand a thing: which is the difference between reflection and
> introspection?

Introspection is a programmatic facility built on top of reflection and
a few supplemental specifications (see the java.beans package).  It
provides somewhat higher-level information about a class than does
reflection, and the information provided can be customized by the class
provider or packager independant of the class itself.  Introspection is
especially designed to be useful in conjunction with visual application
assembly tools.

> I know reflection let a program get some runtime info about itself, but this
> means that I can't reflect a class of another program?

You can reflect any class you can load, subject to a certain extent to
the constraints of any security manager that is active.  It is in
general possible to load any class if you can get the bytecode for it
and its direct and indirect dependencies -- typically in the form of
class files, possibly packaged in a JAR.

John Bollinger
jobollin@indiana.edu


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.