So poking around in the source it looks like it very do-able to add a listener to push 
out template modification times, especially for file-based templates. This would help 
me manage web cache HTTP calls to lastModified without having to call 
Template.getLastModified. I figure this interface would do:


public interface SourceModificationListener
{
        public void sourceModified( long modificationTime );
}



I'd love to give coding this a go. But does it make sense for this in Velocity? Have I 
missed something? Am I dumb?

OK, so awaiting flames   8-|


TSF


*********** REPLY SEPARATOR  ***********

On 12/17/2002 at 21:42 [EMAIL PROTECTED] wrote:

>Hello all,
>
>I wondered if there are plans to implement a resource loader event
>listener?
>
>What I would like to do is create an event listener that would get fired
>when a template has been touched and is reloaded. I need to sync to given
>templates, however I would prefer to avoid checking getLastModified() each
>time in the critical code, instead implementing a listener and have the
>resource loader issue a callback.
>
>
>Thanks for your consideration!
>
>
>TSF
>
>
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




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

Reply via email to