public class Grails extends SpringApplication
Extends the SpringApplication with reloading behavior and other Grails features
| Fields inherited from class | Fields |
|---|---|
class SpringApplication |
BANNER_LOCATION_PROPERTY_VALUE, BANNER_LOCATION_PROPERTY |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected void |
configureBanner(Environment environment) |
|
protected void |
configureProfiles(ConfigurableEnvironment environment, String[] args) |
|
public static void |
main(String[] args) |
|
public ConfigurableApplicationContext |
run(String args) |
|
public static ConfigurableApplicationContext |
run(Class<?> source, String args)Static helper that can be used to run a Grails from the specified source using default settings. |
|
public 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. |
Create a new Grails instance. The application context will load beans from the specified sources (see class-level documentation for details. The instance can be customized before calling run(String...).
sources - the bean sourcesCreate a new Grails instance. The application context will load beans from the specified sources (see class-level documentation for details. The instance can be customized before calling run(String...).
resourceLoader - the resource loader to usesources - the bean sourcesStatic 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)