public class ContextIdApplicationContextInitializer extends Object implements ApplicationContextInitializer<ConfigurableApplicationContext>, Ordered
ApplicationContextInitializer
that sets the Spring
ApplicationContext ID
. The
spring.application.name
property is used to create the ID. If the property is
not set application
is used.HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
ContextIdApplicationContextInitializer() |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
void |
initialize(ConfigurableApplicationContext applicationContext) |
void |
setOrder(int order) |
public ContextIdApplicationContextInitializer()
public void setOrder(int order)
public void initialize(ConfigurableApplicationContext applicationContext)
initialize
in interface ApplicationContextInitializer<ConfigurableApplicationContext>
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.