@CompileStatic @InheritConstructors class GrailsShell extends Grails
A Shell
| Modifiers | Name | Description |
|---|---|---|
class |
GrailsShell.1 |
| Constructor and description |
|---|
GrailsShell(Class<?>[] sources) |
GrailsShell(ResourceLoader resourceLoader, Class<?>[] sources) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static void |
main(String[] args)Main method to run an existing Application class |
|
ConfigurableApplicationContext |
run(String[] args) |
|
static ConfigurableApplicationContext |
run(Class<?> source, String[] args)Static helper that can be used to run a Grails from the specified source using default settings. |
|
static ConfigurableApplicationContext |
run(Class<?>[] sources, String[] args)Static helper that can be used to run a Grails from the specified sources using default settings and user supplied arguments. |
|
protected void |
startConsole(ConfigurableApplicationContext context) |
| Methods inherited from class | Name |
|---|---|
class Grails |
configureBanner, configureProfiles, main, run, run, run |
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 Grails 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 Grails 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)