[forge-issues] [JBoss JIRA] (FORGE-2460) support an easy way to eagerly load commands

George Gastaldi (JIRA) issues at jboss.org
Thu Aug 27 10:04:05 EDT 2015


    [ https://issues.jboss.org/browse/FORGE-2460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13102749#comment-13102749 ] 

George Gastaldi commented on FORGE-2460:
----------------------------------------

Have you tried calling {{org.jboss.forge.addon.ui.command.CommandFactory.getCommands()}} when the server starts? You need to lookup {{CommandFactory}} through the {{AddonRegistry}}.

> support an easy way to eagerly load commands
> --------------------------------------------
>
>                 Key: FORGE-2460
>                 URL: https://issues.jboss.org/browse/FORGE-2460
>             Project: Forge
>          Issue Type: Feature Request
>            Reporter: James Strachan
>
> It can take a little while for JBoss Forge to load commands. When using JBoss Forge on the server side it'd be great to just load all the commands into memory upfront so that if someone tries to use a command the web app is very responsive and doesn't hang for a few seconds.
> Right now I've been adding a few hacks to preload a few commands by hand by issuing dummy commands to validate commands to force them to activate and classload etc.
> I wonder is there a way we could do this generically? 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the forge-issues mailing list