public class GrailsApplicationLauncher extends Object
A launcher for SpringApplication
or a SpringApplication
subclass. The
class that is used can be configured using the System property
grails.application.class.name
or the GRAILS_APPLICATION_CLASS_NAME
environment variable. Uses reflection to allow the launching code to exist in a
separate ClassLoader from the application code.
Constructor and description |
---|
GrailsApplicationLauncher(ClassLoader classLoader) Creates a new launcher that will use the given classLoader to load the
configured SpringApplication class. |
Creates a new launcher that will use the given classLoader
to load the
configured SpringApplication
class.
classLoader
- the ClassLoader
to use Launches the application created using the given sources
. The application
is launched with the given args
.
sources
- the sources for the applicationargs
- the args for the applicationApplicationContext