Enterprise JavaBeans are a completely different animal.
Ok.
Citations? I take my information from the JavaBeans specification document,
which one might take to be authoritative. Did you read it?
Well, I did say *possibly* from there, but it could be that I was
reading about EJB's, like you mention above.
Actually, I just had a quick look on their tutorials, and even though
these are *not enterprise tutorials*, I found the following:
======== BEGIN ========
JavaBeans Design Issues
JavaBeans objects are like other user-defined data
types, but with the following additional options
that make the objects more useful:
Providing a public no-argument constructor
Implementing java.io.Serializable
Following JavaBeans design patterns
Set/get methods for properties
Add/remove methods for events
Java event model (as introduced by JDK 1.1)
Being thread safe/security conscious
Can run in an applet, application, servlet, ...
For an IDE to instantiate a bean, the class
implementation must provide a no-argument constructor.
[...]
Nongraphical Beans
[...]
From the previous sections, it's clear that "Bean-ifying" a class
can be quite simple because of the default Bean functionality.
Minimally, you must provide a no-argument constructor, implement
the Serializable interface, and so on as described previously.
======== END ========
Now I presume that the statement "described previously"
is refering to "JavaBeans Design Issues" above.
I see in other pages however where code examples do not
include an explicit default constructor.
I hope that you can see why I have been confused over
these issues.
[snip]
Did you notice upthread that I said:>> It only needs to be explicit if there is a non-default constructor
Yes, sorry about that, I did miss it.
This is the usual rule for default constructors.
Thanks,
Chris