-
1. Re: how create java classes
fiorenzino Jul 24, 2012 6:48 PM (in response to fiorenzino)some progress...
using:
help java new-class
java new-class --package it.petraia.repository 'public class ArtistRepository implements java.io.Serializable {}'
and after inside the created class:
[associati] ArtistRepository.java $ java new-method 'public void addString() {}'
-
2. Re: how create java classes
fiorenzino Jul 24, 2012 7:13 PM (in response to fiorenzino)why don't add some ejb commands like:
ejb new-ejb --type SINGLETON|STATELESS|STATEFUL --named TestEJB
jms new-mdb --destinationType QUEUE|TOPIC --destination 'queue/example/Test'
my wish list.... :-)
fiorenzo
-
3. Re: how create java classes
lincolnthree Jul 24, 2012 7:48 PM (in response to fiorenzino)This would be a nice feature to add to the ejb plugin currently it just configures a few things in the project and makes sure that the proper APIs are included. Would you mind filing a JIRA Issue for this so we can add it sometime in the future? https://issues.jboss.org/browse/FORGE
Bonus points if you'd like to add the feature and tests for that feature yourself!
I can help get you started
~Lincoln
-
4. Re: how create java classes
fiorenzino Jul 25, 2012 3:57 AM (in response to lincolnthree)Hi Lincoln,
jira issue created :
https://issues.jboss.org/browse/FORGE-610
> Bonus points if you'd like to add the feature and tests for that feature yourself!
> I can help get you started
It'ok for me!
How can I get it started? [after git clone...]
bye
FIorenzo
-
5. Re: how create java classes
lincolnthree Jul 25, 2012 10:31 AM (in response to fiorenzino)Awesome! That's great to hear
Well, if you've already cloned the repository, then half the battle is over! I would start by looking at the BeansPlugin.java as an example - https://github.com/forge/core/blob/master/javaee-impl/src/main/java/org/jboss/forge/spec/javaee/cdi/BeansPlugin.java
You'll notice that the last command allows creating a new bean in a given scope. You could use this, plus also maybe add methods to set up transactional methods or classes, along with the rest of your ideas
I'll also put this feedback on the JIRA issue!
You could also join https://lists.jboss.org/mailman/listinfo/forge-dev in case you have any questions or things you'd like to discuss with the rest of the Forge developers! Welcome to the Forge project!
~Lincoln -
6. Re: how create java classes
fiorenzino Jul 25, 2012 6:39 PM (in response to lincolnthree)Hi Lincoln,
i started to read the forge-code (i need some days to enter inside of forge).
You are right: in BeansPlugin i found usefull the example code.
I have some doubts about design of this extensions/commands [i.e. is it correct to divide commands for all ejbs manipulation or use cdi-bean for all?] and about the syntax of forge methods options.
...this week end, I will write my ideas/questions on forge-dev mailing list
bye
fiorenzo