Class PropertiesRunListener

java.lang.Object
com.cumulocity.microservice.properties.PropertiesRunListener
All Implemented Interfaces:
org.springframework.boot.SpringApplicationRunListener

@Order(4) public class PropertiesRunListener extends Object implements org.springframework.boot.SpringApplicationRunListener
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Should be above logging configuration listener.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PropertiesRunListener(org.springframework.boot.SpringApplication application, String[] args)
     
  • Method Summary

    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 environment)
     
    void
    failed(org.springframework.context.ConfigurableApplicationContext context, Throwable exception)
     
    void
    ready(org.springframework.context.ConfigurableApplicationContext context, Duration timeTaken)
     
    void
    started(org.springframework.context.ConfigurableApplicationContext context, Duration timeTaken)
     
    void
    starting(org.springframework.boot.ConfigurableBootstrapContext bootstrapContext)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ORDER

      public static final int ORDER
      Should be above logging configuration listener.
      See Also:
  • Constructor Details

    • PropertiesRunListener

      public PropertiesRunListener(org.springframework.boot.SpringApplication application, String[] args)
  • Method Details

    • 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 environment)
    • 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(org.springframework.context.ConfigurableApplicationContext context, Duration timeTaken)
      Specified by:
      started 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