@CompileStatic class GrailsConsole extends Grails
The Grails console runs Grails embedded within a Swing console instead of within a container like Tomcat
Modifiers | Name | Description |
---|---|---|
class |
GrailsConsole.1 |
Constructor and description |
---|
GrailsConsole(Class<?>[] sources) |
GrailsConsole(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)