Hi Fiorenzo!<br><br>Absolutely! This is a great idea :)<br><br>To answer your question about the JavaParser, yes, you can add superclasses using one of the following methods: <br><br>    javaSource.setSuperType(Class&lt;?&gt; clazz);<br>
    javaSource.setSuperType(String clazz);<br><br><a href="https://github.com/forge/core/blob/master/parser-java-api/src/main/java/org/jboss/forge/parser/java/Extendable.java">https://github.com/forge/core/blob/master/parser-java-api/src/main/java/org/jboss/forge/parser/java/Extendable.java</a><br>
<br>I hope this helps!<br><br>~Lincoln<br><br><div class="gmail_quote">On Tue, Aug 7, 2012 at 7:12 PM, JFlower <span dir="ltr">&lt;<a href="mailto:fiorenzino@gmail.com" target="_blank">fiorenzino@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi,</div><div><br></div><div>i would contribute to jboss-forge, starting from:</div><div><a href="https://issues.jboss.org/browse/FORGE-610" target="_blank">https://issues.jboss.org/browse/FORGE-610</a></div>
<div><br></div><div>I wrote some initial code to model my idea:</div>
<div><a href="https://github.com/fiorenzino/core/blob/FORGE-610/javaee-impl/src/main/java/org/jboss/forge/spec/javaee/ejb/EJBPlugin.java" target="_blank">https://github.com/fiorenzino/core/blob/FORGE-610/javaee-impl/src/main/java/org/jboss/forge/spec/javaee/ejb/EJBPlugin.java</a></div>

<div><br></div><div>On default, with new-ejb command you can create an ejb en defining little information (name, package, type):</div><div>for me the default ejb created is stateless-localbean.</div><div><br></div><div>And after you could add to ejb created some properties:</div>

<div>new-local-interface [@Local()], new-remote-interface [@Remote()}, new interface [ implements.. ], new superclass [ extends...], transaction attribute, inject some class...</div><div><br></div><div>[i tried inspiration and i copied some code from jpa plugin]</div>

<div><br></div><div>What do you think about my idea for ejb plugin?</div><div><br></div><div>And some question in general:</div><div>1) is it possibile to add some superclass using org.jboss.forge.parser.java.JavaClass? how i can do this?</div>

<div>2) how can i add some complex annotation to mdb like:</div><div><span style="white-space:pre-wrap">                </span>@MessageDriven(name = &quot;AddressFileParserMDB&quot;, activationConfig = {</div><div><span style="white-space:pre-wrap">                                </span>@ActivationConfigProperty(propertyName = &quot;destinationType&quot;, propertyValue = &quot;javax.jms.Queue&quot;),</div>

<div><span style="white-space:pre-wrap">                                </span>@ActivationConfigProperty(propertyName = &quot;destination&quot;, propertyValue = AppConstants.ADDRESS_FILE_RESOLVER_Q),</div><div><span style="white-space:pre-wrap">                                </span>@ActivationConfigProperty(propertyName = &quot;acknowledgeMode&quot;, propertyValue = &quot;Auto-acknowledge&quot;),</div>

<div><span style="white-space:pre-wrap">                                </span>@ActivationConfigProperty(propertyName = &quot;maxSession&quot;, propertyValue = &quot;1&quot;),</div><div><span style="white-space:pre-wrap">                                </span>@ActivationConfigProperty(propertyName = &quot;transactionTimeout&quot;, propertyValue = &quot;10800&quot;),</div>

<div><span style="white-space:pre-wrap">                                </span>@ActivationConfigProperty(propertyName = &quot;dLQMaxResent&quot;, propertyValue = &quot;0&quot;) </div><div><span style="white-space:pre-wrap">                </span>})</div>
<div><br></div><div>Best Regards,</div><div><br></div><div>Fiorenzo</div><div><br></div><div><br></div><div>PS: in this period i&#39;m on vacation and i use the computer when my partner gets distracted ..</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>
<br></blockquote></div><br><br clear="all"><br>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.org" target="_blank">http://ocpsoft.org</a><br>&quot;Simpler is better.&quot;<br>