• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

A question about Introspection and Java Reflection

 
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi ,

Introspection :

Introspection is the automatic process of analyzing a bean's design patterns to reveal the bean's properties, events, and methods.


I am having confusion in understanding by seeing the above defination . This is same as Java Reflection .

Can anybody please tell me how does Introspection and Relection differ ??

 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I have to admit, that I am one of those people who use reflection and introspection, interchangeably...

The reflection libraries are used on Java classes to report on, and manipulate Java classes. It is designed to access the fields, methods, and other class information.

The introspection libraries are used on Java beans, to report on and manipulate. It is designed to access those beans as beans -- properties, events, etc. Under the covers, it obviously uses the reflection libraries -- but it also understands the beaninfo objects which is returned by the bean too.

Henry
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That was great explanation Henry . Thanks .
 
reply
    Bookmark Topic Watch Topic
  • New Topic