[JBoss JIRA] (FORGE-2232) Documenting how to create and test a command that creates Java code
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2232?page=com.atlassian.jira.plugin... ]
Work on FORGE-2232 started by George Gastaldi.
----------------------------------------------
> Documenting how to create and test a command that creates Java code
> -------------------------------------------------------------------
>
> Key: FORGE-2232
> URL: https://issues.jboss.org/browse/FORGE-2232
> Project: Forge
> Issue Type: Sub-task
> Components: Documentation
> Affects Versions: 2.14.0.Final
> Reporter: Antonio Goncalves
> Assignee: George Gastaldi
> Fix For: 2.x Future
>
>
> The idea is to document commands that create new code ({{new}} commands). There are several level of complexity and we should go step by step :
> 1. A command to create a [new constraint payload|FORGE-1620] is quite simple. It only generates Java code to a specific directory
> 2. A command to create a [new package info|FORGE-2071] is a bit tricker because the generate Java code is not a class per-se
> 3. A command to create a [new constraint validator|FORGE-1618] have several parameters that can be used ({{type}} and {{targetConstraint}}). The case of the [JPA Listener|FORGE-2093] is also important because the command taks a choice of parameters ({{POST_UPDATE}}, {{PRE_PERSIST}}...)
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 4 months
[JBoss JIRA] (FORGE-2235) Documenting how to create and test a command that scaffolds code
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/FORGE-2235?page=com.atlassian.jira.plugin... ]
Antonio Goncalves updated FORGE-2235:
-------------------------------------
Description: The idea is to document commands that scaffold code (Java, XML, HTML, JavaScript....) based on existing entities (or even a database). This would use Roaster as well as templating.
> Documenting how to create and test a command that scaffolds code
> ----------------------------------------------------------------
>
> Key: FORGE-2235
> URL: https://issues.jboss.org/browse/FORGE-2235
> Project: Forge
> Issue Type: Sub-task
> Components: Documentation
> Affects Versions: 2.14.0.Final
> Reporter: Antonio Goncalves
> Fix For: 2.x Future
>
>
> The idea is to document commands that scaffold code (Java, XML, HTML, JavaScript....) based on existing entities (or even a database). This would use Roaster as well as templating.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 4 months
[JBoss JIRA] (FORGE-2234) Documenting how to create and test a command that creates or updates text or XML
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/FORGE-2234?page=com.atlassian.jira.plugin... ]
Antonio Goncalves reassigned FORGE-2234:
----------------------------------------
Assignee: George Gastaldi
> Documenting how to create and test a command that creates or updates text or XML
> --------------------------------------------------------------------------------
>
> Key: FORGE-2234
> URL: https://issues.jboss.org/browse/FORGE-2234
> Project: Forge
> Issue Type: Sub-task
> Components: Documentation
> Affects Versions: 2.14.0.Final
> Reporter: Antonio Goncalves
> Assignee: George Gastaldi
> Fix For: 2.x Future
>
>
> The idea is to document commands that change Java code as well as text of XML.
> 1. A command to add a [new Maven repository|FORGE-2056] so it changes an existing XML file (no Java code)
> 2. A command to create a [new CDI extension|FORGE-2086] or [to enable a CDI alternative|FORGE-2080] so it creates Java code as well as creating or updating existing XML
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 4 months
[JBoss JIRA] (FORGE-2234) Documenting how to create and test a command that creates or updates text or XML
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/FORGE-2234?page=com.atlassian.jira.plugin... ]
Antonio Goncalves updated FORGE-2234:
-------------------------------------
Description:
The idea is to document commands that change Java code as well as text of XML.
1. A command to add a [new Maven repository|FORGE-2056] so it changes an existing XML file (no Java code)
2. A command to create a [new CDI extension|FORGE-2086] or [to enable a CDI alternative|FORGE-2080] so it creates Java code as well as creating or updating existing XML
> Documenting how to create and test a command that creates or updates text or XML
> --------------------------------------------------------------------------------
>
> Key: FORGE-2234
> URL: https://issues.jboss.org/browse/FORGE-2234
> Project: Forge
> Issue Type: Sub-task
> Components: Documentation
> Affects Versions: 2.14.0.Final
> Reporter: Antonio Goncalves
> Fix For: 2.x Future
>
>
> The idea is to document commands that change Java code as well as text of XML.
> 1. A command to add a [new Maven repository|FORGE-2056] so it changes an existing XML file (no Java code)
> 2. A command to create a [new CDI extension|FORGE-2086] or [to enable a CDI alternative|FORGE-2080] so it creates Java code as well as creating or updating existing XML
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 4 months
[JBoss JIRA] (FORGE-2233) Documenting how to create and test a command that updates Java code
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/FORGE-2233?page=com.atlassian.jira.plugin... ]
Antonio Goncalves updated FORGE-2233:
-------------------------------------
Description: The idea is to document commands that add new code to existing classes ({{add}} commands). Example, the command to add a [CDI producer|FORGE-2079] or add a [CDI injection point|FORGE-2226] (was: A {{add}} command)
> Documenting how to create and test a command that updates Java code
> -------------------------------------------------------------------
>
> Key: FORGE-2233
> URL: https://issues.jboss.org/browse/FORGE-2233
> Project: Forge
> Issue Type: Sub-task
> Components: Documentation
> Affects Versions: 2.14.0.Final
> Reporter: Antonio Goncalves
> Fix For: 2.x Future
>
>
> The idea is to document commands that add new code to existing classes ({{add}} commands). Example, the command to add a [CDI producer|FORGE-2079] or add a [CDI injection point|FORGE-2226]
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 4 months
[JBoss JIRA] (FORGE-2232) Documenting how to create and test a command that creates Java code
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/FORGE-2232?page=com.atlassian.jira.plugin... ]
Antonio Goncalves updated FORGE-2232:
-------------------------------------
Description:
The idea is to document commands that create new code ({{new}} commands). There are several level of complexity and we should go step by step :
1. A command to create a [new constraint payload|FORGE-1620] is quite simple. It only generates Java code to a specific directory
2. A command to create a [new package info|FORGE-2071] is a bit tricker because the generate Java code is not a class per-se
3. A command to create a [new constraint validator|FORGE-1618] have several parameters that can be used ({{type}} and {{targetConstraint}}). The case of the [JPA Listener|FORGE-2093] is also important because the command taks a choice of parameters ({{POST_UPDATE}}, {{PRE_PERSIST}}...)
was:
The idea is to document commands that create new code ({{new}} commands). There are several level of complexity and we should go step by step :
1. The command to create a [new constraint payload|FORGE-1620] is quite simple. It only generates Java code to a specific directory
2. The command to create a [new package info|FORGE-2071] is a bit tricker because the generate Java code is not a class per-se
3. The command to create a [new constraint validator|FORGE-1618] have several parameters that can be used ({{type}} and {{targetConstraint}}). The case of the [JPA Listener|FORGE-2093] is also important because the command taks a choice of parameters ({{POST_UPDATE}}, {{PRE_PERSIST}}...)
> Documenting how to create and test a command that creates Java code
> -------------------------------------------------------------------
>
> Key: FORGE-2232
> URL: https://issues.jboss.org/browse/FORGE-2232
> Project: Forge
> Issue Type: Sub-task
> Components: Documentation
> Affects Versions: 2.14.0.Final
> Reporter: Antonio Goncalves
> Assignee: George Gastaldi
> Fix For: 2.x Future
>
>
> The idea is to document commands that create new code ({{new}} commands). There are several level of complexity and we should go step by step :
> 1. A command to create a [new constraint payload|FORGE-1620] is quite simple. It only generates Java code to a specific directory
> 2. A command to create a [new package info|FORGE-2071] is a bit tricker because the generate Java code is not a class per-se
> 3. A command to create a [new constraint validator|FORGE-1618] have several parameters that can be used ({{type}} and {{targetConstraint}}). The case of the [JPA Listener|FORGE-2093] is also important because the command taks a choice of parameters ({{POST_UPDATE}}, {{PRE_PERSIST}}...)
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 4 months
[JBoss JIRA] (FORGE-2232) Documenting how to create and test a command that creates Java code
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/FORGE-2232?page=com.atlassian.jira.plugin... ]
Antonio Goncalves updated FORGE-2232:
-------------------------------------
Description:
The idea is to document commands that create new code ({{new}} commands). There are several level of complexity and we should go step by step :
1. The command to create a [new constraint payload|FORGE-1620] is quite simple. It only generates Java code to a specific directory
2. The command to create a [new package info|FORGE-2071] is a bit tricker because the generate Java code is not a class per-se
3. The command to create a [new constraint validator|FORGE-1618] have several parameters that can be used ({{type}} and {{targetConstraint}}). The case of the [JPA Listener|FORGE-2093] is also important because the command taks a choice of parameters ({{POST_UPDATE}}, {{PRE_PERSIST}}...)
was:A {{new}} command
> Documenting how to create and test a command that creates Java code
> -------------------------------------------------------------------
>
> Key: FORGE-2232
> URL: https://issues.jboss.org/browse/FORGE-2232
> Project: Forge
> Issue Type: Sub-task
> Components: Documentation
> Affects Versions: 2.14.0.Final
> Reporter: Antonio Goncalves
> Assignee: George Gastaldi
> Fix For: 2.x Future
>
>
> The idea is to document commands that create new code ({{new}} commands). There are several level of complexity and we should go step by step :
> 1. The command to create a [new constraint payload|FORGE-1620] is quite simple. It only generates Java code to a specific directory
> 2. The command to create a [new package info|FORGE-2071] is a bit tricker because the generate Java code is not a class per-se
> 3. The command to create a [new constraint validator|FORGE-1618] have several parameters that can be used ({{type}} and {{targetConstraint}}). The case of the [JPA Listener|FORGE-2093] is also important because the command taks a choice of parameters ({{POST_UPDATE}}, {{PRE_PERSIST}}...)
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 4 months
[JBoss JIRA] (FORGE-2079) Being able to add a new CDI producer field
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/FORGE-2079?page=com.atlassian.jira.plugin... ]
Antonio Goncalves updated FORGE-2079:
-------------------------------------
Summary: Being able to add a new CDI producer field (was: Being able to create a new CDI producer field)
> Being able to add a new CDI producer field
> ------------------------------------------
>
> Key: FORGE-2079
> URL: https://issues.jboss.org/browse/FORGE-2079
> Project: Forge
> Issue Type: Sub-task
> Components: Java EE
> Affects Versions: 2.12.1.Final
> Reporter: Antonio Goncalves
> Fix For: 2.x Future
>
>
> It would be good to have a command to add a CDI producer field to an existing class. A simple command such as :
> {code}
> cdi-add-producer-field --named em --type javax.persistence.EntityManager
> {code}
> Would generate :
> {code}
> public class DatabaseProducer
> {
> @Produces
> private EntityManager em;
> }
> {code}
> Then, we can have more attributes :
> {code}
> cdi-add-producer-field --named em --type javax.persistence.EntityManager --qualifier Production --alternative=true --scoped Request --atNamed=true
> {code}
> {code}
> public class DatabaseProducer
> {
> @Produces
> @Production
> @Alternative
> @RequestScoped
> @Named
> private EntityManager em;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 4 months