[JBoss JIRA] (FORGE-2752) Introduce extension points in the existing Java EE commands
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2752?page=com.atlassian.jira.plugin... ]
George Gastaldi updated FORGE-2752:
-----------------------------------
Description:
JPA and REST commands are used in the Java EE addon but could perform differently when using another technology (like Spring Boot, for example).
Example:
JPA: In Spring Boot, there is no {{persistence.xml}}, but an {{application.properties}} file that contains the necessary information.
REST: Even though JAX-RS is not used, the generated REST endpoints would need extra annotations to perform correctly. This is accomplished now
Right now the JPASetupWizard for example delegates the action to a PersistenceOperations class directly. It would be nice if we could introduce some indirection (or even extract to a common addon) in the commands.execute() method.
One idea is to have a Command -> Facet -> Operations sequence, so other technologies (like Spring Boot) could reuse the same command by only implementing a different facet.
was:
JPA and REST commands are used in the Java EE addon but could perform differently when using another technology (like Spring Boot, for example).
Example:
JPA: In Spring Boot, there is no {{persistence.xml}}, but an {{application.properties}} file that contains the necessary information.
REST: Even though JAX-RS is not used, the generated REST endpoints would need extra annotations to perform correctly. This is accomplished now
Right now the JPASetupWizard for example delegates the action to a PersistenceOperations class directly. It would be nice if we could introduce some indirection (or even extract to a common addon) in the commands.execute() method.
One idea is to have a Command -> Facet -> Operations, so other technologies (like Spring Boot) could reuse the same command by only implementing a different facet.
> Introduce extension points in the existing Java EE commands
> -----------------------------------------------------------
>
> Key: FORGE-2752
> URL: https://issues.jboss.org/browse/FORGE-2752
> Project: Forge
> Issue Type: Enhancement
> Components: Java EE
> Affects Versions: 3.7.0.Final
> Reporter: George Gastaldi
> Fix For: 3.x Future
>
>
> JPA and REST commands are used in the Java EE addon but could perform differently when using another technology (like Spring Boot, for example).
> Example:
> JPA: In Spring Boot, there is no {{persistence.xml}}, but an {{application.properties}} file that contains the necessary information.
> REST: Even though JAX-RS is not used, the generated REST endpoints would need extra annotations to perform correctly. This is accomplished now
> Right now the JPASetupWizard for example delegates the action to a PersistenceOperations class directly. It would be nice if we could introduce some indirection (or even extract to a common addon) in the commands.execute() method.
> One idea is to have a Command -> Facet -> Operations sequence, so other technologies (like Spring Boot) could reuse the same command by only implementing a different facet.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)