[JBoss JIRA] (FORGE-1855) Simple Container should support singleton services
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-1855?page=com.atlassian.jira.plugin... ]
George Gastaldi reopened FORGE-1855:
------------------------------------
> Simple Container should support singleton services
> --------------------------------------------------
>
> Key: FORGE-1855
> URL: https://issues.jboss.org/browse/FORGE-1855
> Project: Forge
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Furnace Simple
> Affects Versions: 2.6.0.Final
> Reporter: George Gastaldi
> Assignee: Matej Briskar
> Fix For: 2.6.1.Final
>
>
> In CDI we use @Singleton to make a bean a singleton, however there is no equivalent on the simple container.
> I propose a {{public interface SingletonService extends Service}} that could be checked while creating instances in {{SimpleExportedInstanceImpl}}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (FORGE-1879) Missing a setter in the generated JSF Backing Bean
by Antonio Goncalves (JIRA)
Antonio Goncalves created FORGE-1879:
----------------------------------------
Summary: Missing a setter in the generated JSF Backing Bean
Key: FORGE-1879
URL: https://issues.jboss.org/browse/FORGE-1879
Project: Forge
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: Scaffold
Affects Versions: 2.6.0.Final
Reporter: Antonio Goncalves
Fix For: 2.x Future
Let's say we have a {{Publisher}} entity and we scaffold a JSF app from this entity, we end up with a backing bean that looks like that :
{code}
@Named
@Stateful
@ConversationScoped
public class PublisherBean implements Serializable {
private Publisher publisher;
public Publisher getPublisher() {
return this.publisher;
}
...
{code}
There is no setter method on {{Publisher}}. It would be great to have one so it's easier to test a backing bean with Arquillian (we then just set the Publisher)
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (FORGE-1856) Allow execution of native commands
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-1856?page=com.atlassian.jira.plugin... ]
George Gastaldi updated FORGE-1856:
-----------------------------------
Summary: Allow execution of native commands (was: Shell commands should fallback to native commands if a command is not found)
> Allow execution of native commands
> ----------------------------------
>
> Key: FORGE-1856
> URL: https://issues.jboss.org/browse/FORGE-1856
> Project: Forge
> Issue Type: Enhancement
> Security Level: Public(Everyone can see)
> Components: UI - Shell
> Affects Versions: 2.6.0.Final
> Reporter: George Gastaldi
> Fix For: 2.x Future
>
>
> {quote}
> gastaldi
> 12:23 maybe we could fallback to native
> lincolnthree
> 12:24 gastaldi: fallback to native would be nice. we need passthrough to the native command line if possible
> gastaldi
> 12:24 in our CommandNotFoundHandler, we could fallback to running a native command
> lincolnthree
> 12:24 stalep: any idea how to do that? :p
> gastaldi
> 12:25 lincolnthree: https://github.com/forge/core/blob/master/shell/impl/src/main/java/org/jb...
> 12:25 we should have a flag that allows that
> {quote}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (FORGE-1802) Console hangs when running an invalid script
by Ivan St. Ivanov (JIRA)
[ https://issues.jboss.org/browse/FORGE-1802?page=com.atlassian.jira.plugin... ]
Ivan St. Ivanov commented on FORGE-1802:
----------------------------------------
I think we should first solve the problem of where to notify the ScriptCommandListener about failure in finding or parsing a command.
> Console hangs when running an invalid script
> --------------------------------------------
>
> Key: FORGE-1802
> URL: https://issues.jboss.org/browse/FORGE-1802
> Project: Forge
> Issue Type: Sub-task
> Components: UI - Shell
> Affects Versions: 2.5.0.Final
> Reporter: Antonio Goncalves
> Assignee: Ivan St. Ivanov
> Priority: Critical
> Fix For: 2.x Future
>
>
> I am executing a script (with the {{run}} command) and the console hanged and stopped working completely (I had to kill the process). I realized that there is an error in the script (missing {{;}} at the end of line {{--named ISBN}}).
> Take the following script, and save it on a {{hangs.fsh}} file
> {code}
> # ##################### #
> # Creates a new project #
> # ##################### #
> project-new --named cdbookstore --topLevelPackage org.agoncal.training.javaee6adv --type war --finalName cdbookstore ;
> # Setup the persistence unit in persistence.xml
> # ############
> jpa-setup --persistenceUnitName cdbookstorePU ;
> # ######################## #
> # Creates the domain model #
> # ######################## #
> # ISBN constraint
> # ############
> constraint-new-annotation --named ISBN
> # Genre entity
> # ############
> jpa-new-entity --named Genre ;
> jpa-new-field --named name --length 100 ;
> {code}
> Now, execute the script, and see the error message :
> {code}
> [temp]$ run hangs.fsh
> project-new --named cdbookstore --topLevelPackage org.agoncal.training.javaee6adv --type war --finalName cdbookstore ;
> ***SUCCESS*** Project named 'cdbookstore' has been created.
> [cdbookstore]$ jpa-setup --persistenceUnitName cdbookstorePU ;
> ***SUCCESS*** Persistence (JPA) is installed.
> [cdbookstore]$ constraint-new-annotation --named ISBN
> ***SUCCESS*** Bean Validation Constraint Annotations org.agoncal.training.javaee6adv.constraints.ISBN was created
> [ISBN.java]$ jpa-new-entity --named Genre ;
> Exception when parsing/running: jpa-new-entity --named Genre , org.jboss.forge.roaster.model.impl.JavaAnnotationImpl cannot be cast to org.jboss.forge.roaster.model.MemberHolder
> [ISBN.java]$
> {code}
> At this point, I can't interact with the console and need to kill the process.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (FORGE-1802) Console hangs when running an invalid script
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-1802?page=com.atlassian.jira.plugin... ]
George Gastaldi commented on FORGE-1802:
----------------------------------------
We need to check if there is a way to handle these exceptions using the Aesh API. This is a pre-command execution issue afaik
> Console hangs when running an invalid script
> --------------------------------------------
>
> Key: FORGE-1802
> URL: https://issues.jboss.org/browse/FORGE-1802
> Project: Forge
> Issue Type: Sub-task
> Components: UI - Shell
> Affects Versions: 2.5.0.Final
> Reporter: Antonio Goncalves
> Assignee: Ivan St. Ivanov
> Priority: Critical
> Fix For: 2.x Future
>
>
> I am executing a script (with the {{run}} command) and the console hanged and stopped working completely (I had to kill the process). I realized that there is an error in the script (missing {{;}} at the end of line {{--named ISBN}}).
> Take the following script, and save it on a {{hangs.fsh}} file
> {code}
> # ##################### #
> # Creates a new project #
> # ##################### #
> project-new --named cdbookstore --topLevelPackage org.agoncal.training.javaee6adv --type war --finalName cdbookstore ;
> # Setup the persistence unit in persistence.xml
> # ############
> jpa-setup --persistenceUnitName cdbookstorePU ;
> # ######################## #
> # Creates the domain model #
> # ######################## #
> # ISBN constraint
> # ############
> constraint-new-annotation --named ISBN
> # Genre entity
> # ############
> jpa-new-entity --named Genre ;
> jpa-new-field --named name --length 100 ;
> {code}
> Now, execute the script, and see the error message :
> {code}
> [temp]$ run hangs.fsh
> project-new --named cdbookstore --topLevelPackage org.agoncal.training.javaee6adv --type war --finalName cdbookstore ;
> ***SUCCESS*** Project named 'cdbookstore' has been created.
> [cdbookstore]$ jpa-setup --persistenceUnitName cdbookstorePU ;
> ***SUCCESS*** Persistence (JPA) is installed.
> [cdbookstore]$ constraint-new-annotation --named ISBN
> ***SUCCESS*** Bean Validation Constraint Annotations org.agoncal.training.javaee6adv.constraints.ISBN was created
> [ISBN.java]$ jpa-new-entity --named Genre ;
> Exception when parsing/running: jpa-new-entity --named Genre , org.jboss.forge.roaster.model.impl.JavaAnnotationImpl cannot be cast to org.jboss.forge.roaster.model.MemberHolder
> [ISBN.java]$
> {code}
> At this point, I can't interact with the console and need to kill the process.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months