Ivan,
Use VelocityEngineFactoryBean - it is a subclass of =
VelocityEngineFactory that provides exactly what you need: a singleton =
VelocityEngine in an application context.
Regarding PDF generation: This is currently just available for views in =
Spring's web MVC framework. Like the Velocity support, we might =
eventually refactor this into a generic and a web-specific part.
Juergen
-----Original Message-----
From: spr...@li...
[mailto:spr...@li...]On Behalf
Of Ivan Ristic
Sent: Thursday, November 13, 2003 4:48 PM
To: spr...@li...
Subject: [[W3-SPAM]] - [Springframework-developer] VelocityEngineFactory
question - Email found in subject
As part of a project, I am using Velocity to format
emails. Because my requirements are minimal, I would like to
configure Velocity in the applicationContext but use it as
a singleton after that. Looking at the source code of the
VelocityEngineFactory, I don't think it can work with a
singleton Velocity engine.
Do you think adding a parameter there to support this mode
of operation would be a good idea?
On a similar matter, I see that a support for PDF generation
is in the package web.servlet.document. This implies that PDF
generation is web-based, which is not the case.
Shouldn't there be a generic support for application output?
Or am I missing something?
--=20
ModSecurity (http://www.modsecurity.org)
[ Open source IDS for Web applications ]
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|