by Lion-O <nosp@[EMAIL PROTECTED]
>
Dec 3, 2006 at 02:28 AM
> Obviously, I'm new to JavaBeans. Could someone please break it down for
me,
> what they are, and what they're good for?
A JavaBean is basicly an independent Java class which conforms itself to
some
specific implementation rules. For example; if you wish to set a value in
a
javabean you'd be using a so called "setter". Its basicly a method which
'sets'
a value to a private variable in the bean. Getting such a value is done
using a
'getter'.
And because all of those things are standards any program which needs to
get,
for example, an "adress" variable out of a bean can know up front that
it'd be
using "beanname.getAddress()" to get the value and "beanname.setAddress()"
to
actually set it.
You can get more info on the subject here:
http://java.sun.com/products/javabeans/docs/index.htmlhttp://java.sun.com/products/javabeans/docs/spec.html
--
Groetjes, Peter
..\\ PGP/GPG key: http://www.catslair.org/pubkey.asc