Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Why do i call a Java Bean a Java Bean ?

 
Raveendran Karunakaran
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i have this doubt hitting me hard ? why do i call a Java Bean a Java Bean. only that i store properties and retrieve them and it seems no different from any Java file. Can any one enlighten me as to whether there is any special significance attached to being called Java BEAN ?
 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i agree, any java file can be made a java bean by following certain naming conventions.
If that bean happens to be a Visual Bean then the user automatically understands that it w'd probably respond to other events as well. By the way C# has built in the idea of a property in the language itself which is quite innovative.
Just my thoughts.
karthik.
 
pascal betz
Ranch Hand
Posts: 547
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i think your right, there is no much difference between a class and a bean.
if you stick to these naming conventions, then you can use visual tools to put your beans together (as the BDK).
these tools use introspection (i guess) and rely on the correct naming of methods and variables. thats about it.

pascal
 
Humans and their filthy friendship brings nothing but trouble. My only solace is this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!