|
Re: [acceleo] best way to pass extra data from Java to template ? [message #805202 is a reply to message #805035] |
Thu, 23 February 2012 13:32  |
|
Hi,
I'm not sure I understood your need perfectly but the Acceleo properties files APIs let you load properties directly thanks to a "java.util.Properties". For that, have a look at the method "getPropertiesLoaderService(...)" in the generated Java launcher and look at "alternatePropertiesLoading(String)". This operation will receive the "id" of the properties files that you have registered in the getProperties(...) operation in the generated Java launcher and with this "id" it will look for the ".properties" file and load its content in a java.util.Properties object. You can plug your code here to load programmatically a java.util.Properties object without having any ".properties" file on your file system.
Regards,
Stephane Begaudeau, Obeo
--
Twitter: @sbegaudeau & @acceleo
Google+: stephane.begaudeau & acceleo
Blog: http://stephanebegaudeau.tumblr.com
Acceleo Documentation: http://docs.obeonetwork.com/acceleo
|
|
|
Powered by
FUDForum. Page generated in 0.01710 seconds