Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Beans > Re: What's a Ja...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 7 Topic 1271 of 1401
Post > Topic >>

Re: What's a JavaBean?

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.html
http://java.sun.com/products/javabeans/docs/spec.html


-- 
Groetjes, Peter

..\\ PGP/GPG key: http://www.catslair.org/pubkey.asc
 




 7 Posts in Topic:
What's a JavaBean?
"pokaru" <po  2006-12-02 19:01:22 
Re: What's a JavaBean?
Lion-O <nosp@[EMAIL PR  2006-12-03 02:28:39 
Re: What's a JavaBean?
"arad" <prof  2007-01-23 04:41:23 
Re: What's a JavaBean?
Lion-O <nosp@[EMAIL PR  2007-01-24 09:29:58 
Re: What's a JavaBean?
mei <mei@[EMAIL PROTEC  2007-02-11 22:40:20 
Re: What's a JavaBean?
Frank Fredstone <none@  2007-03-02 14:19:09 
Re: What's a JavaBean?
"levilista@[EMAIL PR  2007-04-08 09:59:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 13:17:55 CST 2008.