Custom block parameters

Niclas Hedhman niclas at hedhman.org
Mon Nov 1 23:01:32 EST 2004


On Tuesday 02 November 2004 10:58, David Leangen wrote:

> So, IIUC, the helper object is given a reference to the instantiated gizmo
> object, and is given a chance somewhere in gizmo's lifecyce to modify it's
> configuration?
>
> If so, where in the lifecycle would this be? Seems that it would have to be
> AFTER configure()... In this case, the helper object would have to have
> some configuration knowledge. I'd rather encapsulate all the configuraiton
> logic in the configuration() method...
>
> Or am I mistaken? You are suggesting that the Configuration object be
> modified before gizmo is instantiated, so gizmo is none the wiser?

Steve is explaining things at a very, very low level. 
>From a component's point of view, you need to declare a context entry 
requirement in the contextualize() method, and the information will be 
available from there.

No Configuration object would be involved, but a Context.


Cheers
Niclas
-- 
   +------//-------------------+
  / http://www.bali.ac        /
 / http://niclas.hedhman.org / 
+------//-------------------+




More information about the support-dpml mailing list