|Re: [acceleo] @main & invoking generated Java class [message #733606 is a reply to message #731196]
||Wed, 05 October 2011 04:12
| Laurent Goubet
Registered: July 2009
This was indeed ill-explained in the documentation, we have added a proper documentation for the "main" behavior ... though the platform we're using is currently bugging. The page is located at http://www.obeonetwork.com/page/the-acceleo-main-modules ... If it still fails to load when you read this, here is the content of the part we've added there :
The main template will be called on all the elements of the model with the given type. The beginning of the execution of the main template initialized the generation. As such, if you have a main template defined on a UML Class, this template will be called for all your classes but it also mean that the generator will be initialized for each call to this main template so, for example, the cache of the queries will be cleared after each call. It is recommended to define the main module on the root of your metamodel and then to navigate manually in your model to call all the other templates. On a UML model, you would improve performances by defining your generator on the root concept Model instead of Class.
Powered by FUDForum
. Page generated in 0.01892 seconds