Java Virtal Machine.net

[ News ] rss

February 01, 2011

Mark Wielaard: New GPG key. Finally created a new GPG key using gnupg. The old one was a DSA/1024 bits one and 8 years old. The new one is a RSA/2048 bits one. I will use the new one in the future to sign any release tarballs I might create. pub 2048R/57816A6A 2011-01-29 Key f...

More »

February 01, 2011

Andrew Hughes: [SECURITY] IcedTea6 1.7.8, 1.8.5, 1.9.5 Released!. We are pleased to announce a new set of security releases, IcedTea6 1.7.8, IcedTea6 1.8.5 and IcedTea6 1.9.5. This update contains the following security updates: The IcedTea project provides a harness to build the source code from OpenJDK6 u...

More »

March/2024
SunMonTueWedThuFriSat
     12
3456789
10111213141516
17181920212223
2425262728 2930
31      

[ Archives News
for 'Java Technology' ]

home > news > java technology > the missing link

The Missing Link

Attaching a GUI to a domain model object (a.k.a. "Entity") is a boring job. You need to write lots of synchronization code or models to change the UI when the entity changes and vice versa. Now that has an end. Here is the ultimate, automatic glue generator: The Java Beans Binding API. It allows you to glue together two Java Beans (i. e. POJOs, and has nothing to do with Swing or EJB). Just tell the API that you want to glue property X of beans A to property Y of bean B and "magically" from now on they will have always the same value. It even will internally translate data types! Cool stuff. What can we do with it? For example, you could tell the API that you want to glue your GUI directly to a EJB 3 Entity. How easier could it be to code a data view? Here is a small sample. Actually it is not using EJB 3, but hey, as you know, turning that class Person in a EJB 3 entity is as easy as adding @Entity to it's definition... ;-) public final class Person { private String firstName; private final String lastName; public Person(final String firstName, final String lastName) { this.firstName = firstName; this.lastName = lastName; } public final String getFirstName() { return this.firstName; } public final String getLastName() { return this.lastName; } public final void setFirstName(final String firstName) { this.firstNa...


Date: January, 03 2010
Url: http://www.java.net/blog/mkarg/archive/2010/01/03/missing-glue


Others News

©2002-2019Java-Virtual-Machine.net de | fr | bootstrap navbar examples | bootstrap website builder | free icon maker