JavaBean Proxies Wyoming

Using object proxies lets you access bean properties by name, augment the behavior of an object, and create a broker object of a JavaBean. Here's how to use them.

Local Companies

Brown Gary D
(307) 634-4626
3701 Ostdiek Ct
Cheyenne, WY
Rnd Consulting
(307) 382-4503
901 Eisenhower Dr
Rock Springs, WY
Raven Group the
(307) 473-8446
Casper, WY
Microtechnology Consultants
(307) 265-2570
364 N Nebraska Ave
Casper, WY
Advanced Integrators
(307) 637-3488
Cheyenne, WY
Advanced Computers Inc
(307) 733-2263
1725 River Dr
Jackson, WY
Sample Master
(307) 235-6437
535 N Lennox St
Casper, WY
Realtime Inc
(307) 684-1606
4 Cowboy Trl
Buffalo, WY
Erc Computing Services
(307) 638-7614
516 Randall Ave
Cheyenne, WY
Roys Tech Works
(307) 632-5663
Cheyenne, WY

provided by: 
Originally published at Internet.com


While developing a small database application for keeping a work journal, I discovered I needed a way to map JavaBean properties to JTable columns. This led to creation of a component for accessing JavaBean properties by name at runtime - in other words, a JavaBean proxy. In this article, I illustrate my simple JavaBean proxy and show how JavaBean proxies can be created with the new dynamic proxy classes in JDK 1.3.

Tools



To use the code from this article, you will need the following tools:


(Note: For the simple bean proxy code, you can actually use JDK 1.2. You only need JDK 1.3 for the dynamic bean proxy code.)

Bean Interrogation



In order to access a JavaBean - or any java class for that matter - dynamically at runtime, you first need to get information about the capabilities of the class, or "class meta data". This information can come from two sources: BeanInfo classes and low-level analysis of the bean class. BeanInfo classes - extensions of java.beans.SimpleBeanInfo or implementations of java.beans.BeanInfo - provide descriptors of the properties, events, and methods of a class. They are associated with a class by the simple naming convention class name + "BeanInfo"...

Read article at Internet.com site
Related Local Events
Board of Directors
Dates: 5/18/2010 - 5/18/2010
Location: Chamber of Commerce
Gillette, WY
View Details

Board of Directors
Dates: 9/21/2010 - 9/21/2010
Location: Chamber of Commerce
Gillette, WY
View Details

Board of Directors
Dates: 2/16/2010 - 2/16/2010
Location: Chamber of Commerce
Gillette, WY
View Details

Board of Directors
Dates: 11/17/2009 - 11/17/2009
Location: Chamber of Commerce
Gillette, WY
View Details

Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML