Re: Resource attributes in constructor

The class is instantiated by Jigsaw in a generic way, with
Class.newInstance().  This calls the default constructor for your class.
After the default constructor exits, Jigsaw calls your class'
initialize(Object[] values) method.  If you want something to be done as
soon as possible after the attributes are set, then you can put it in the
initialize(Object[] values) method, after calling super.initialize(values).

If I've made any errors here, I'm sure others will correct them, but I
believe this is the way it works.

>Hi,
>
>Hope this is an easy one for somebody out there.
>
>I can't seem to access my resources attributes in the constructor for
>the class.  When I do a getValue, nothing is returned?  I'm not getting
>an IllegalAttributeException or anything, just no value.  When the same
>call is placed in the get() method, the proper value is returned.
>
>Any ideas on what I'm missing?
>
>TIA
>--
>Scott Jewell
>jewellsc@pop.mts.kpnw.org
>
>The opinions and actions mentioned are my own and no one else.



+---------------------+-------------------------+---------------------+
|    Dave Makower     |    davemak@pencom.com   |   WWW Specialist    |
+---------------------+-------------------------+---------------------+
|     Co-author of "Java Programming Basics" (Henry Holt/MIS:Press)   |
|                 http://www.pencom.com/javabasics/                   |
+----------------------------------+----------------------------------+
|   Pencom Web Works               |   (212) 513-7777   voice         |
|   Pencom Systems Inc.            |   (212) 513-1975   fax           |
|   40 Fulton St.                  |                                  |
|   New York, NY  10038            |   http://www.pencom.com/         |
+----------------------------------+----------------------------------+

Received on Thursday, 23 January 1997 16:33:55 UTC