Sounds like you might want to write your own ResourceLoader which wraps the
class that is holding onto the cached template content.  I;ve never done
this so treat this with a grain of salt (even that), but it sounds like what
you might want to take a peek at anyway.

> -----Original Message-----
> From: Leyzerzon, Simeon G [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 25 February 2003 9:38 AM
> To: 'Velocity Users List'
> Subject: RE: resource loading question
> 
> 
> the requirement is that there's a lot of working legacy code 
> which handles
> it this way, which I would rather not change.  So, if there's another
> signature for getTemplate, I'd rather use it, if not - then 
> I'll think of
> another solution.
> 
> 
> 
> Thanks.
> 
> Simeon
> 
> 
> 
> -----Original Message-----
> From: Paul Smith [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 24, 2003 5:18 PM
> To: 'Velocity Users List'
> Subject: RE: resource loading question
> 
> 
> > I have a presentation handler class which reads the 
> 
> > template(s) from file(s)
> 
> > in the file system, and stores these templates in a Hashtable 
> 
> > of Strings.
> 
> 
> 
> Is there an application specific requirement to cache the templates?
> 
> Velocity will already do that for you.
> 
> 
> 
> cheers,
> 
> 
> 
> Paul Smith
> 
>  
> 
> 
> 
> ---------------------------------------------------------------------
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> 
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to