- 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
- Author:
- Dave Syer, Andy Wilkinson
-
-
Field Summary
-
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getOrder
public int getOrder()
- Specified by:
getOrder
in interface org.springframework.core.Ordered
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.