JaroslavTulach at 12:01, 20 September 2009 - 2009-09-20 12:01:41

←Older revision Revision as of 12:01, 20 September 2009
Line 1: Line 1:
Specification for designing reusable components in [[Java]]. A [[JavaBean]] is a '''public''' class with default (no argument) constructor. It is accompanied by a set of properties (defined by standardized [[GettersAndSetters]]) and events, listeners. The [[JavaBean]] specification was probably the first ever specification in [[Java]] that used the [[Convention over Configuration]] paradigm. It is enough to name setters as ''setXYZ'' and getters as ''getXYZ'' and the automatic introspection mechanism recognizes them as properties. The same applies to listeners - it is enough to have pair of ''addXYZListener(XYZListener)'' and ''removeXYZListener(XYZListener)'' methods and the system automatically recognizes them as event source. If these conventions are not enough, the [[JavaBean]] class can be associated with additional information in form of ''BeanInfo'' class.
Specification for designing reusable components in [[Java]]. A [[JavaBean]] is a '''public''' class with default (no argument) constructor. It is accompanied by a set of properties (defined by standardized [[GettersAndSetters]]) and events, listeners. The [[JavaBean]] specification was probably the first ever specification in [[Java]] that used the [[Convention over Configuration]] paradigm. It is enough to name setters as ''setXYZ'' and getters as ''getXYZ'' and the automatic introspection mechanism recognizes them as properties. The same applies to listeners - it is enough to have pair of ''addXYZListener(XYZListener)'' and ''removeXYZListener(XYZListener)'' methods and the system automatically recognizes them as event source. If these conventions are not enough, the [[JavaBean]] class can be associated with additional information in form of ''BeanInfo'' class.
-
Anyone knows older use of [[Convention over Configuration]]?
+
[[Category:APIDesignPatterns]]
-
 
+
-
<comments/>
+

JaroslavTulach at 11:54, 20 September 2009 - 2009-09-20 11:54:15

←Older revision Revision as of 11:54, 20 September 2009
Line 1: Line 1:
-
Specification for designing reusable components in [[Java]]. A [[JavaBean]] is a '''public''' class with default (no argument) constructor. It is accompanied by a set of properties (defined by standardized [[GettersAndSetters]]) and events, listeners. The [[JavaBean]] specification was probably the first ever specification in [[Java]] that used the [[wikipedia::Convention_over_Configuration]] paradigm. It is enough to name setters as ''setXYZ'' and getters as ''getXYZ'' and the automatic introspection mechanism recognizes them as properties. The same applies to listeners - it is enough to have pair of ''addXYZListener(XYZListener)'' and ''removeXYZListener(XYZListener)'' methods and the system automatically recognizes them as event source. If these conventions are not enough, the [[JavaBean]] class can be associated with additional information in form of ''BeanInfo'' class.
+
Specification for designing reusable components in [[Java]]. A [[JavaBean]] is a '''public''' class with default (no argument) constructor. It is accompanied by a set of properties (defined by standardized [[GettersAndSetters]]) and events, listeners. The [[JavaBean]] specification was probably the first ever specification in [[Java]] that used the [[Convention over Configuration]] paradigm. It is enough to name setters as ''setXYZ'' and getters as ''getXYZ'' and the automatic introspection mechanism recognizes them as properties. The same applies to listeners - it is enough to have pair of ''addXYZListener(XYZListener)'' and ''removeXYZListener(XYZListener)'' methods and the system automatically recognizes them as event source. If these conventions are not enough, the [[JavaBean]] class can be associated with additional information in form of ''BeanInfo'' class.
 +
 
 +
Anyone knows older use of [[Convention over Configuration]]?
 +
 
 +
<comments/>

JaroslavTulach at 11:39, 20 September 2009 - 2009-09-20 11:39:24

←Older revision Revision as of 11:39, 20 September 2009
Line 1: Line 1:
-
Specification for designing reusable components in [[Java]].
+
Specification for designing reusable components in [[Java]]. A [[JavaBean]] is a '''public''' class with default (no argument) constructor. It is accompanied by a set of properties (defined by standardized [[GettersAndSetters]]) and events, listeners. The [[JavaBean]] specification was probably the first ever specification in [[Java]] that used the [[wikipedia::Convention_over_Configuration]] paradigm. It is enough to name setters as ''setXYZ'' and getters as ''getXYZ'' and the automatic introspection mechanism recognizes them as properties. The same applies to listeners - it is enough to have pair of ''addXYZListener(XYZListener)'' and ''removeXYZListener(XYZListener)'' methods and the system automatically recognizes them as event source. If these conventions are not enough, the [[JavaBean]] class can be associated with additional information in form of ''BeanInfo'' class.

JaroslavTulach: New page: Specification for designing reusable components in Java. - 2009-04-12 16:11:56

New page: Specification for designing reusable components in Java.

New page

Specification for designing reusable components in [[Java]].