<div dir="ltr">Good old NPE ;o)<div><br></div><div>I&#39;m not running the code into a container, so @Inject does not work. In the readme there is the addonRegistry method. In all the samples, the registery is injected... but how do I use all that with a good old Main ?</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-30 22:17 GMT+02:00 George Gastaldi <span dir="ltr">&lt;<a href="mailto:ggastald@redhat.com" target="_blank">ggastald@redhat.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto"><div>Why it doesn&#39;t work? Is any exception being thrown?</div><div><br></div><div>Em 30/03/2014, ās 17:14, Antonio Goncalves &lt;<a href="mailto:antonio.mailing@gmail.com" target="_blank">antonio.mailing@gmail.com</a>&gt; escreveu:<br>
<br></div><div><div class="h5"><blockquote type="cite"><div><div dir="ltr">Hum...<div><br></div><div>In the README there is :</div><div><br></div><div><span style="font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;font-size:16px;line-height:22.399999618530273px;white-space:pre-wrap">@Inject private TemplateProcessorFactory factory</span><br>

</div><div><br></div><div>But is there a way to use the templating from a Main class ? If I use Forge, I have Furnace as a container, and I was trying something like this, but it doesn&#39;t work : </div><div>







<p>Furnace furnace = <i>startFurnace</i>();<br>Imported&lt;TemplateProcessorFactory&gt; imported = furnace.getAddonRegistry(TemplateProcessorFactory.<span><b>class</b></span>);<br>TemplateProcessorFactory factory = imported.get();<br>


</p></div><div><br></div><div>Any simple Hello World from a Main class and a pom.xml ?</div><div><br></div><div>Thanks</div><div>Antonio</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-29 19:03 GMT+01:00 George Gastaldi <span dir="ltr">&lt;<a href="mailto:ggastald@redhat.com" target="_blank">ggastald@redhat.com</a>&gt;</span>:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>Hi Antonio,</div><div><br></div><div>Roaster currently only maintains a class structure (add/remove fields, methods, interfaces,etc), not code (method bodies) at the moment. </div>

<div><br></div><div>There is a JIRA to allow that though.</div><div><br></div><div>See the templates addon README to learn how to generate content from a template.</div><div><br></div><div>Best Regards,</div><div><br></div>

<div>George Gastaldi</div><div><br>Em 29/03/2014, ās 14:43, Antonio Goncalves &lt;<a href="mailto:antonio.mailing@gmail.com" target="_blank">antonio.mailing@gmail.com</a>&gt; escreveu:<br><br></div><div><div><blockquote type="cite">

<div><div dir="ltr"><div class="gmail_extra">Hi all,</div><div class="gmail_extra"><br></div><div class="gmail_extra">I&#39;m starting to get a bit more confident with Roaster... and now I would like to add templating. If I&#39;m right, Roaster is nice to add bits and pieces of Java here and there, but it&#39;s better to use Templates when there is a lot of code, and mix templating and Roaster for better code customization.</div>


<div class="gmail_extra"><br></div><div class="gmail_extra">Is there a sample I could use to write a Hello Word ? A template with an &quot;engine&quot; that uses Roaster to add Java code to the template.</div><div class="gmail_extra">


<br></div><div class="gmail_extra">Thanks<br clear="all"><div><br></div>-- <br>Antonio Goncalves <br>Software architect and Java Champion<br><br><a href="http://www.antoniogoncalves.org/" target="_blank">Web site</a> | <a href="http://twitter.com/agoncal" target="_blank">Twitter</a> | <a href="http://www.linkedin.com/in/agoncal" target="_blank">LinkedIn</a> | <a href="http://www.parisjug.org/" target="_blank">Paris JUG</a> | <a href="http://www.devoxx.fr/" target="_blank">Devoxx France</a>
</div></div>
</div></blockquote></div></div><blockquote type="cite"><div><span>_______________________________________________</span><br><span>forge-dev mailing list</span><br><span><a href="mailto:forge-dev@lists.jboss.org" target="_blank">forge-dev@lists.jboss.org</a></span><br>

<span><a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a></span></div></blockquote></div><br>_______________________________________________<br>


forge-dev mailing list<br>
<a href="mailto:forge-dev@lists.jboss.org" target="_blank">forge-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Antonio Goncalves <br>Software architect and Java Champion<br>

<br><a href="http://www.antoniogoncalves.org/" target="_blank">Web site</a> | <a href="http://twitter.com/agoncal" target="_blank">Twitter</a> | <a href="http://www.linkedin.com/in/agoncal" target="_blank">LinkedIn</a> | <a href="http://www.parisjug.org/" target="_blank">Paris JUG</a> | <a href="http://www.devoxx.fr/" target="_blank">Devoxx France</a>
</div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>forge-dev mailing list</span><br><span><a href="mailto:forge-dev@lists.jboss.org" target="_blank">forge-dev@lists.jboss.org</a></span><br>
<span><a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a></span></div></blockquote></div></div></div><br>_______________________________________________<br>

forge-dev mailing list<br>
<a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Antonio Goncalves <br>Software architect and Java Champion<br>
<br><a href="http://www.antoniogoncalves.org/" target="_blank">Web site</a> | <a href="http://twitter.com/agoncal" target="_blank">Twitter</a> | <a href="http://www.linkedin.com/in/agoncal" target="_blank">LinkedIn</a> | <a href="http://www.parisjug.org/" target="_blank">Paris JUG</a> | <a href="http://www.devoxx.fr/" target="_blank">Devoxx France</a>
</div>