Class LoggingEnvironmentRunListener

  • All Implemented Interfaces:
    org.springframework.boot.SpringApplicationRunListener

    @Order(5)
    public class LoggingEnvironmentRunListener
    extends Object
    implements org.springframework.boot.SpringApplicationRunListener
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void contextLoaded​(org.springframework.context.ConfigurableApplicationContext configurableApplicationContext)  
      void contextPrepared​(org.springframework.context.ConfigurableApplicationContext configurableApplicationContext)  
      void environmentPrepared​(org.springframework.boot.ConfigurableBootstrapContext bootstrapContext, org.springframework.core.env.ConfigurableEnvironment environment)  
      void environmentPrepared​(org.springframework.core.env.ConfigurableEnvironment configurableEnvironment)  
      void failed​(org.springframework.context.ConfigurableApplicationContext context, Throwable exception)  
      void finished​(org.springframework.context.ConfigurableApplicationContext context, Throwable exception)  
      void initLogging​(ConfigurationFileProvider configurationFileProvider)  
      void ready​(org.springframework.context.ConfigurableApplicationContext context, Duration timeTaken)  
      void running​(org.springframework.context.ConfigurableApplicationContext context)  
      void started()  
      void started​(org.springframework.context.ConfigurableApplicationContext context)  
      void started​(org.springframework.context.ConfigurableApplicationContext context, Duration timeTaken)  
      void starting()  
      void starting​(org.springframework.boot.ConfigurableBootstrapContext bootstrapContext)  
    • Constructor Detail

      • LoggingEnvironmentRunListener

        public LoggingEnvironmentRunListener​(org.springframework.boot.SpringApplication application,
                                             String[] args)
    • Method Detail

      • starting

        public void starting()
      • starting

        public void starting​(org.springframework.boot.ConfigurableBootstrapContext bootstrapContext)
        Specified by:
        starting in interface org.springframework.boot.SpringApplicationRunListener
      • environmentPrepared

        public void environmentPrepared​(org.springframework.core.env.ConfigurableEnvironment configurableEnvironment)
      • environmentPrepared

        public void environmentPrepared​(org.springframework.boot.ConfigurableBootstrapContext bootstrapContext,
                                        org.springframework.core.env.ConfigurableEnvironment environment)
        Specified by:
        environmentPrepared in interface org.springframework.boot.SpringApplicationRunListener
      • contextPrepared

        public void contextPrepared​(org.springframework.context.ConfigurableApplicationContext configurableApplicationContext)
        Specified by:
        contextPrepared in interface org.springframework.boot.SpringApplicationRunListener
      • contextLoaded

        public void contextLoaded​(org.springframework.context.ConfigurableApplicationContext configurableApplicationContext)
        Specified by:
        contextLoaded in interface org.springframework.boot.SpringApplicationRunListener
      • started

        public void started()
      • started

        public void started​(org.springframework.context.ConfigurableApplicationContext context)
        Specified by:
        started in interface org.springframework.boot.SpringApplicationRunListener
      • started

        public void started​(org.springframework.context.ConfigurableApplicationContext context,
                            Duration timeTaken)
        Specified by:
        started in interface org.springframework.boot.SpringApplicationRunListener
      • running

        public void running​(org.springframework.context.ConfigurableApplicationContext context)
        Specified by:
        running in interface org.springframework.boot.SpringApplicationRunListener
      • ready

        public void ready​(org.springframework.context.ConfigurableApplicationContext context,
                          Duration timeTaken)
        Specified by:
        ready in interface org.springframework.boot.SpringApplicationRunListener
      • failed

        public void failed​(org.springframework.context.ConfigurableApplicationContext context,
                           Throwable exception)
        Specified by:
        failed in interface org.springframework.boot.SpringApplicationRunListener
      • finished

        public void finished​(org.springframework.context.ConfigurableApplicationContext context,
                             Throwable exception)