Misplaced Pages

JavaBeans

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.

In computing based on the Java Platform, JavaBeans is a technology developed by Sun Microsystems and released in 1996, as part of JDK 1.1.

#476523

4-478: The 'beans' of JavaBeans are classes that encapsulate one or more objects into a single standardized object (the bean). This standardization allows the beans to be handled in a more generic fashion, allowing easier code reuse and introspection . This in turn allows the beans to be treated as software components , and to be manipulated visually by editors and IDEs without needing any initial configuration, or to know any internal implementation details. As part of

8-408: Is an entity that has state , behavior , and identity . An object can model some part of reality or can be an invention of the design process whose collaborations with other such objects serve as the mechanisms that provide some higher-level behavior. Put another way, an object represents an individual, identifiable item, unit, or entity, either real or abstract, with a well-defined role in

12-457: The problem domain. A programming language can be classified based on its support for objects. A language that provides an encapsulation construct for state, behavior, and identity is classified as object-based . If the language also provides polymorphism and inheritance it is classified as object-oriented . A language that supports creating an object from a class is classified as class-based . A language that supports object creation via

16-659: The standardization, all beans must be serializable , have a zero-argument constructor , and allow access to properties using getter and setter methods . The JavaBeans functionality is provided by a set of classes and interfaces in the java.beans package. In order to function as a JavaBean class , an object class must obey certain conventions about method naming, construction, and behaviour. These conventions make it possible to have tools that can use, reuse, replace, and connect Java Beans. The required conventions are as follows: TestPersonBean.java : Object (computer science) In software development , an object

#476523