org.springframework.boot.builder

Class ParentContextApplicationContextInitializer

  • java.lang.Object
    • org.springframework.boot.builder.ParentContextApplicationContextInitializer
  • All Implemented Interfaces:
    org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>, org.springframework.core.Ordered


    public class ParentContextApplicationContextInitializer
    extends java.lang.Object
    implements org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>, org.springframework.core.Ordered
    ApplicationContextInitializer for setting the parent context. Also publishes ParentContextApplicationContextInitializer.ParentContextAvailableEvent when the context is refreshed to signal to other listeners that the context is available and has a parent.
    Since:
    1.0.0
    • Field Summary

      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int getOrder() 
      void initialize(org.springframework.context.ConfigurableApplicationContext applicationContext) 
      void setOrder(int order) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ParentContextApplicationContextInitializer

        public ParentContextApplicationContextInitializer(org.springframework.context.ApplicationContext parent)
    • Method Detail

      • setOrder

        public void setOrder(int order)
      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface org.springframework.core.Ordered
      • initialize

        public void initialize(org.springframework.context.ConfigurableApplicationContext applicationContext)
        Specified by:
        initialize in interface org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>