org.springframework.boot.admin

Class SpringApplicationAdminMXBeanRegistrar

  • java.lang.Object
    • org.springframework.boot.admin.SpringApplicationAdminMXBeanRegistrar
  • All Implemented Interfaces:
    java.util.EventListener, org.springframework.beans.factory.Aware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>, org.springframework.context.EnvironmentAware, org.springframework.context.event.GenericApplicationListener, org.springframework.context.event.SmartApplicationListener, org.springframework.core.Ordered


    public class SpringApplicationAdminMXBeanRegistrar
    extends java.lang.Object
    implements org.springframework.context.ApplicationContextAware, org.springframework.context.event.GenericApplicationListener, org.springframework.context.EnvironmentAware, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
    Register a SpringApplicationAdminMXBean implementation to the platform MBeanServer.
    Since:
    1.3.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
      void afterPropertiesSet() 
      void destroy() 
      int getOrder() 
      void onApplicationEvent(org.springframework.context.ApplicationEvent event) 
      void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) 
      void setEnvironment(org.springframework.core.env.Environment environment) 
      boolean supportsEventType(org.springframework.core.ResolvableType eventType) 
      boolean supportsSourceType(java.lang.Class<?> sourceType) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.context.event.GenericApplicationListener

        supportsEventType
      • Methods inherited from interface org.springframework.context.event.SmartApplicationListener

        getListenerId
      • Methods inherited from interface org.springframework.context.ApplicationListener

        forPayload
    • Constructor Detail

      • SpringApplicationAdminMXBeanRegistrar

        public SpringApplicationAdminMXBeanRegistrar(java.lang.String name)
                                              throws javax.management.MalformedObjectNameException
        Throws:
        javax.management.MalformedObjectNameException
    • Method Detail

      • setApplicationContext

        public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException
      • setEnvironment

        public void setEnvironment(org.springframework.core.env.Environment environment)
        Specified by:
        setEnvironment in interface org.springframework.context.EnvironmentAware
      • supportsEventType

        public boolean supportsEventType(org.springframework.core.ResolvableType eventType)
        Specified by:
        supportsEventType in interface org.springframework.context.event.GenericApplicationListener
      • supportsSourceType

        public boolean supportsSourceType(java.lang.Class<?> sourceType)
        Specified by:
        supportsSourceType in interface org.springframework.context.event.SmartApplicationListener
      • onApplicationEvent

        public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
        Specified by:
        onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface org.springframework.context.event.SmartApplicationListener
        Specified by:
        getOrder in interface org.springframework.core.Ordered
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception
      • destroy

        public void destroy()
                     throws java.lang.Exception
        Specified by:
        destroy in interface org.springframework.beans.factory.DisposableBean
        Throws:
        java.lang.Exception