[
https://issues.jboss.org/browse/FORGE-2460?page=com.atlassian.jira.plugin...
]
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)