Class ContextIdApplicationContextInitializer
java.lang.Object
org.springframework.boot.context.ContextIdApplicationContextInitializer
- All Implemented Interfaces:
- org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>,- org.springframework.core.Ordered
public class ContextIdApplicationContextInitializer
extends Object
implements org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>, org.springframework.core.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.- Since:
- 1.0.0
- 
Field SummaryFields inherited from interface org.springframework.core.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintgetOrder()voidinitialize(org.springframework.context.ConfigurableApplicationContext applicationContext) voidsetOrder(int order) 
- 
Constructor Details- 
ContextIdApplicationContextInitializerpublic ContextIdApplicationContextInitializer()
 
- 
- 
Method Details- 
setOrderpublic void setOrder(int order) 
- 
getOrderpublic int getOrder()- Specified by:
- getOrderin interface- org.springframework.core.Ordered
 
- 
initializepublic void initialize(org.springframework.context.ConfigurableApplicationContext applicationContext) - Specified by:
- initializein interface- org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>
 
 
-