Class RegistrationApplicationListener

java.lang.Object
de.codecentric.boot.admin.client.registration.RegistrationApplicationListener
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

public class RegistrationApplicationListener extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Listener responsible for starting and stopping the registration task when the application is ready.
Author:
Johannes Edmeier
  • Constructor Details

    • RegistrationApplicationListener

      public RegistrationApplicationListener(ApplicationRegistrator registrator)
  • Method Details

    • onApplicationReady

      @EventListener @Order(2147483647) public void onApplicationReady(org.springframework.boot.context.event.ApplicationReadyEvent event)
    • onClosedContext

      @EventListener @Order(2147483647) public void onClosedContext(org.springframework.context.event.ContextClosedEvent event)
    • startRegisterTask

      public void startRegisterTask()
    • stopRegisterTask

      public void stopRegisterTask()
    • setAutoDeregister

      public void setAutoDeregister(boolean autoDeregister)
    • setAutoRegister

      public void setAutoRegister(boolean autoRegister)
    • setRegisterPeriod

      public void setRegisterPeriod(Duration registerPeriod)
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean