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 |
static int |
DEFAULT_ORDER |
static String |
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 void setOrder(int order)
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.