Package | Description |
---|---|
org.springframework.boot |
Core Spring Boot classes.
|
org.springframework.boot.builder |
Fluent 'builder' style API to construct a
SpringApplication . |
Modifier and Type | Field and Description |
---|---|
static ApplicationContextFactory |
ApplicationContextFactory.DEFAULT
A default
ApplicationContextFactory implementation that will create an
appropriate context for the WebApplicationType . |
Modifier and Type | Method and Description |
---|---|
static ApplicationContextFactory |
ApplicationContextFactory.of(Supplier<ConfigurableApplicationContext> supplier)
Creates an
ApplicationContextFactory that will create contexts by calling
the given Supplier . |
static ApplicationContextFactory |
ApplicationContextFactory.ofContextClass(Class<? extends ConfigurableApplicationContext> contextClass)
Creates an
ApplicationContextFactory that will create contexts by
instantiating the given contextClass via its primary constructor. |
Modifier and Type | Method and Description |
---|---|
void |
SpringApplication.setApplicationContextFactory(ApplicationContextFactory applicationContextFactory)
Sets the factory that will be called to create the application context.
|
Modifier and Type | Method and Description |
---|---|
SpringApplicationBuilder |
SpringApplicationBuilder.contextFactory(ApplicationContextFactory factory)
Explicitly set the factory used to create the application context.
|