Rafal Krzewski wrote:
> 
> "Geir Magnusson Jr." wrote:
> 
> > What I would like to see, and will upload to the whiteboard the
> > [SNIP]
> > and we can design more as needed.
> 
> I like that. Simple & flexible. Logic for Listener support
> can be encapsulated in the Cartridge class.
> No cartridge = minimal penalty, so major part of the user base
> will be unaffected.
> As far as I can tell, it will solve Leon's escaping problem.

And if you java guru's (I am not a guru... alas...) have some ideas how
to *avoid* that minimal penalty, I am all for it...
 
> One thing came to my mind - maybe the value passed to the
> referenceInsert
> should be of type Object, so that the method could do something special
> for rendering it into a String insetead of calling Object.toString() ?
> I'm not sure if it will be usefull to anyone, because it's easy to
> put that logic into a wrapper class, but it would give a bit more
> flexiblity...

I am not sure I understand what you mean - do you mean just pass the
'value' object, and let the caller do the 'toString()' if they want?

 public String referenceInsert( String reference, Object value );

That sounds good.

I will incorporate that into what I am uploading to whiteboard.

geir

-- 
Geir Magnusson Jr.                               [EMAIL PROTECTED]
Developing for the web?  See http://jakarta.apache.org/velocity/

Reply via email to