Helping ordinary people create extraordinary websites!
HOME TUTORIALS SCRIPTS WEB HOSTING BLOG FORUM
Get Our Newsletter
Email:

Reflecting, Introspecting, and Customizing JavaBeans

By Laura Bennett
2003-10-09


Summary

Reflection, introspection, and customization are somewhat dependent on each other. Visual builders need to expose a bean's properties to the users so that they can customize the properties. A tool or program must be able to introspect before it can allow a user to customize its beans. Therefore, you should provide a BeanInfo with references to default property editors or customized property editors.

You don't have to be writing an IDE or visual builder to make use of the reflection and introspection classes. They are also useful if you need to find out about third-party beans. You can develop an application that examines beans and determines their use on the fly to do whatever you want with them. Designing beans with customization is very important for developers who want to get their beans out the door. Users must be able to manipulate the beans that they buy, beg, borrow, or steal. You can easily make this possible by implementing a BeanInfo, property editors, and customizers for your beans.



Tutorial Pages:
» Reflecting, introspecting, and customizing JavaBeans
» Reflection
» Customization using property sheets and editors
» Customization using customizers
» Summary
» Resources


First published by IBM DeveloperWorks


 | Bookmark
Related Tutorials:
» All about JAXP, Part 1
» Make Database Queries Without the Database
» Load List Values for Improved Efficiency
» 2 Ways To Implement Session Tracking
» A Simple Way to Read an XML File in Java
» Develop Aspect-Oriented Java Applications with Eclipse and AJDT