Date: 2004-04-09T14:03:07
Editor: 131.191.40.91 <>
Wiki: Apache Struts Wiki
Page: StrutsCatalogInstrumentableForms
URL: http://wiki.apache.org/struts/StrutsCatalogInstrumentableForms
no comment
Change Log:
------------------------------------------------------------------------------
@@ -1,8 +1,8 @@
StrutsCatalog: '''Provide a multipurpose form that can be instrumented.'''
-This class allows you to instrument your !ActionForms and use them as dynamic
property setters and getters as well. (The size 89 is chosen because the series
created by x = 2x + 1 stays prime for a considerable time. This is far preferrable to
the default !HashMap behavior.) You don't have to use this as a form, of course. You
can use it just for the dynamic property setters and getters and instrument these as
you like. But, there are lots of reasons to instrument action forms and this allows
you to do that.
+This class allows you to instrument your !ActionForms and use them as dynamic
property setters and getters as well. (The size 89 is chosen because the series
created by x = 2x + 1 stays prime for a considerable time, e.g. 89, 179, 359, ''etc''.
This maximizes the benefits of the lookup algorithms.) You don't have to use this
class as a form, of course. You can use it just for the dynamic property setters and
getters and instrument that, if you like, or not. But, there are lots of reasons to
instrument action forms and this allows you to do that.
-You instrument such forms, of course, by subclassing !BeanMapForm. Check Joshua
Bloch's <i>Effective Java</i> and Item 14 (favor composition over inheritance) to
understand the intricacies involved with instrumentation and collection classes.
+You instrument such forms, of course, by subclassing !BeanMapForm. Check Joshua
Bloch's ''Effective Java'', Item 14 (favor composition over inheritance), p. 71 ''et
seq'', to understand the intricacies involved with instrumentation and collection
classes.
{{{
public class BeanMapForm extends ActionForm implements Map {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]