public class BootstrapApplicationListener extends Object implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent>, org.springframework.core.Ordered
ApplicationContextInitializer beans in a separate bootstrap
context. The bootstrap context is a SpringApplication created from sources defined in
spring.factories as BootstrapConfiguration, and initialized with external
config taken from "bootstrap.properties" (or yml), instead of the normal
"application.properties".| Modifier and Type | Field and Description |
|---|---|
static String |
BOOTSTRAP_PROPERTY_SOURCE_NAME
Property source name for bootstrap.
|
static int |
DEFAULT_ORDER
The default order for this listener.
|
static String |
DEFAULT_PROPERTIES
The name of the default properties.
|
| Constructor and Description |
|---|
BootstrapApplicationListener() |
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder() |
void |
onApplicationEvent(org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent event) |
void |
setOrder(int order) |
public static final String BOOTSTRAP_PROPERTY_SOURCE_NAME
public static final int DEFAULT_ORDER
public static final String DEFAULT_PROPERTIES
public void onApplicationEvent(org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent>public int getOrder()
getOrder in interface org.springframework.core.Orderedpublic void setOrder(int order)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.