Java Beans without properties

Hello all,

This is a very basic question about Java Beans in particular.

Do you need properties defined in the class to call it a Java Bean or just the getter and setter methods are enough(values for them will come from somewhere else).

I have also checked the JavaBean 1.01 spec and it no where says that you need to define properties and accessor methods.Can someone point me to a legitimate link which says so?

thx,

Neo

[460 byte] By [Neoreborna] at [2007-10-3 8:18:22]
# 1

Neo,

I don't know if this will help but almost all the frameworks based on JavaBeans or POJOs will work just with the getters and setters defined (no need to have the corresponding property though during development you will refer to them as properties)

I wasn't able to find any documentation or link on the Internet either :(

Bye!

mariano.capurroa at 2007-7-15 3:23:44 > top of Java-index,Desktop,Developing for the Desktop...
# 2
Re-read sections 2.1 and 2.2 in JavaBeans spec.The JavaBean is a public class with public constructor without parameters.This constructor is required to create new instance of JavaBean.
UncleSAMa at 2007-7-15 3:23:44 > top of Java-index,Desktop,Developing for the Desktop...