[stringtemplate-interest] Group file refreshing ?

Colin Bean ccbean at gmail.com
Fri Feb 22 10:21:19 PST 2008


According to the documentation, this is actually expected behavior
http://www.stringtemplate.org/doc/doc.tml
(under Template and Attribute Lookup Rules): "The refresh interval is
not used for group files because the group file is considered complete
and enduring."

Don't know what I solutions I can recommend for what you're trying to
do, other than changing the behavior of StringTemplateGroupLoader...

Colin


On Fri, Feb 22, 2008 at 12:24 AM, Dobes Vandermeer <dobesv at gmail.com> wrote:
> It seems like group files are cached forever and never refreshed, even
>  with a refresh interval set.
>
>  This has two implications - first, if I had "dynamic" groups of some
>  kind (e.g. for user-defined templates), they'd create a memory leak.
>  Second, during development I have to redeploy my war in order to
>  reload any group files.
>
>  The part of this that's bugging me now is the lack of reloads - during
>  development I set refreshInterval to zero, but that doesn't help with
>  the group files.
>
>  Is there something I'm missing ?
>  _______________________________________________
>  stringtemplate-interest mailing list
>  stringtemplate-interest at antlr.org
>  http://www.antlr.org:8080/mailman/listinfo/stringtemplate-interest
>


More information about the stringtemplate-interest mailing list