@groovy.transform.CompileStatic class GrailsSwingConsole extends GrailsApp
The Grails console runs Grails embedded within a Swing console instead of within a container like Tomcat
Constructor and description |
---|
GrailsSwingConsole
(java.lang.Class<?>[] sources) |
GrailsSwingConsole
(org.springframework.core.io.ResourceLoader resourceLoader, java.lang.Class<?>[] sources) |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
configureApplicationContextClass() |
|
static void |
main(java.lang.String[] args) Main method to run an existing Application class |
|
static org.springframework.context.ConfigurableApplicationContext |
run(java.lang.Class<?> source, java.lang.String[] args) Static helper that can be used to run a GrailsApp from the specified source using default settings. |
|
static org.springframework.context.ConfigurableApplicationContext |
run(java.lang.Class<?>[] sources, java.lang.String[] args) Static helper that can be used to run a GrailsApp from the specified sources using default settings and user supplied arguments. |
Methods inherited from class | Name |
---|---|
class GrailsApp |
compileGroovyFile, configureDirectoryWatcher, configureEnvironment, createApplicationContext, createPluginManagerListener, enableDevelopmentModeWatch, isDevelopmentModeActive, newMicronautContextBuilder, printRunStatus, recompile, run, run, run, setDevelopmentModeActive |
Main method to run an existing Application class
args
- The first argument is the Application class nameStatic helper that can be used to run a GrailsApp from the specified source using default settings.
source
- the source to loadargs
- the application arguments (usually passed from a Java main method)Static helper that can be used to run a GrailsApp from the specified sources using default settings and user supplied arguments.
sources
- the sources to loadargs
- the application arguments (usually passed from a Java main method)