Proposal: (no name yet) directive or proxy

Bear Giles <[email protected]>
Newsgroups gmane.comp.jakarta.velocity.devel
Message-ID <CALBNtw7NyoWbZ-bGQSUZa2gpUTHwm5uz=hrsZw6exrYGuOsNhQ@mail.gmail.com>
This is related to the prior item. It was pretty painful to get the indent
directive working and something that helped a lot was when I added a LOT of
log messages.

This seems like something that would be useful to anyone else writing a new
Directive, esp. if it also includes some more detailed documentation over
exactly what should be seen and what it means.

An alternate approach is to implement this as a Proxy. This allows
the Directive object to log *all* calls, not just the ones you expect, and
could easily be used with an actual implementation when a question arises.
(I would prefer AOP but since we can't rely on it being present...)

I don't know if there would be a perceived need for this, or even a good
name if it's a directive. (PrototypeDirective?). A logical name for a proxy
would be a LoggingProxy.

Bear Giles
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.