velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stan Devyatovsky <>
Subject Custom Resource Loader
Date Mon, 13 Dec 2004 12:05:27 GMT

 Why is it not possible to programmatically configure Velocity?
 I mean, why can't I do something like this:
 VelocityEngine engine = new VelocityEngine();

 The only possible way to specify myCustomResourceLoader is via
 .properties, but this solution doesn't give me enough flexibility.
 For example, myCustomResourceLoader could depend on the Locale like

  ResourceLoader myCustomResourceLoader = new
  // this resource loader would try to lookup for localized templates
  // first for the given locale

 How do I do something like that?
Best regards,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message