@groovy.transform.CompileStatic @groovy.transform.InheritConstructors class GrailsShell extends GrailsApp
A Shell
| Fields inherited from class | Fields |
|---|---|
class GrailsApp |
GRAILS_BANNER, SPRING_PROFILES, configuredEnvironment, developmentModeActive, directoryWatcher, enableBeanCreationProfiler |
| Constructor and description |
|---|
GrailsShell
(java.lang.Class<?>[] sources) |
GrailsShell
(org.springframework.core.io.ResourceLoader resourceLoader, java.lang.Class<?>[] sources) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.Object |
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, loadPluginConfigurationsToMicronautContext, 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)