I'm trying to make a standalone toolbox loader and I have a question.
is necessary in a standalone application to create a new instance of each Velocity Tool each time a Context is created?
is a good idea to add a "singleton" parameter to toolbox.xml and thus create instances only if necessary?
Regards Edgar
Mike Kienenberger wrote:
What's the best practice for adding a Velocity Tool to the context in a standalone app? is it manually with something like "context.put("tool", new *Tool())" or there's a configuration setting I'm missing?
Shinobu Kawai <[EMAIL PROTECTED]> wrote:
I guess that's the normal method. Or, you can use the toolbox strategy like VelocityViewServlet and DVSL. ## It's not built into Velocity, so you'll have to implement if yourself, though.
If you came up with a standalone toolbox loader using the same format as toolbox.xml and posted it, it might end up in the next version of velocity tools :)
XMLToolboxManager probably does most if not all of what you need already.
-Mike
--------------------------------------------------------------------- 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]
