Currently Being Moderated

JavaBean

VERSION 7

Created on: Feb 15, 2005 2:50 AM by Pablogra - Last Modified:  Apr 26, 2006 1:32 PM by Scott Dawson

JavaBeans are Java classes that follow these conventions:

  • provide a no-argument constructor

  • implement java.io.Serializable

  • provide setters and getters for properties, following a standard naming convention, for example, methods called getName and setName provide a read/write property called "name"; for boolean properties, the getter methods can start with "get" or "is", for example, an isConnected method to get the value of a property named "connected"

  • provide add/remove methods for event listeners

  • thread and security aware so that the JavaBean can run in an applet, application, servlet, etc.

 

An introduction to JavaBeans

 

Average User Rating
(0 ratings)




There are no comments on this article

More Like This

  • Retrieving data ...

More by Pablogra