I think it's more good programming practice as there is nothing explicitely in the java bean spec about this... However... there is also the following reference...
http://java.sun.com/products/javabeans/docs/goodbean.pdf
which states...
Two rules implied by the JavaBeans architecture but that are sometimes missed
include:
- the Bean class must provide zero-argument constructors so it can be created
using Beans.instantiate(), and
- the Bean must support persistence, by implementing either Serializable or
Externalizable.
Regards... Greg

![]() | ![]()
06/13/2002 08:39 PM | ![]() To: [EMAIL PROTECTED] cc: Subject: Re: TCK issue: beans with full constructors? |
Sanjiva Weerawarana wrote:
>+1 .. beans can only have no-args constructors; otherwise it breaks
>the entire programming model they espouse.
>
>
Do you have a definative reference for this? I see nothing in the spec
that requires this, and conflicting information out on the web.
In particular, I find the following very informative:
http://developer.java.sun.com/developer/community/chat/OfficeHours/1999/oh0812.html
- Sam Ruby