Results 1 to 4 of 4

Thread: What's Java Beans exactly?

  1. #1
    Join Date
    Mar 2005
    Location
    Istanbul
    Beans
    97

    Question What's Java Beans exactly?

    I just have a short look at Java Beans but I dont get the use of it? what does it provide and how does it provide?

  2. #2
    Join Date
    Dec 2004
    Location
    Austria / Hallein
    Beans
    51
    Distro
    Ubuntu 10.04 Lucid Lynx

    Unhappy Re: What's Java Beans exactly?


  3. #3
    Join Date
    Mar 2005
    Location
    Istanbul
    Beans
    97

    Re: What's Java Beans exactly?

    very helpfull tough i never think of looking at google thanx man very brilliant!!
    JavaBeans technology is the component architecture for the Java 2 Platform, Standard Edition (J2SE). Components (JavaBeans) are reusable software programs that you can develop and assemble easily to create sophisticated applications. JavaBeans technology is based on the JavaBeans specification.
    isnt every thing developed in java is reuseable? whats the difference why should i use beans?

  4. #4
    Join Date
    Apr 2005
    Beans
    22

    Re: What's Java Beans exactly?

    It's really pretty simple... A JavaBean is a component that conforms to the JavaBean specifications...

    http://java.sun.com/products/javabeans/docs/spec.html

    At the simplest, it has "getters" and "setters" for its attributes. So if an object has an attribute 'name' that is a String, it will have the accessor and mutator:

    public String getName();
    public void setName(String name);

    Beans have information that can be inspected from them via Bean APIs

    http://java.sun.com/j2se/1.3/docs/ap...e-summary.html

    Don't try to think too hard about it and imagine it's some amazing scheme, it's heavily hyped, and just handy, not an end in itself...

    Most Swing UI widgets conform to the spec, check out their source for a feel for how they handled it...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •