|
From: Ivan R. <iv...@we...> - 2003-11-13 16:24:18
|
> Use VelocityEngineFactoryBean - it is a subclass of > VelocityEngineFactory that provides exactly what you need: > a singleton VelocityEngine in an application context. It is singleton in terms of Spring bean configuration process but not a real singleton. A single call to Velocity.init(properties) is needed to initialize the engine as a singleton. Later in the code you simply use Velocity.getTemplate(templateName) to get the template. -- ModSecurity (http://www.modsecurity.org) [ Open source IDS for Web applications ] |