Class SpringApplicationAdminMXBeanRegistrar
java.lang.Object
org.springframework.boot.admin.SpringApplicationAdminMXBeanRegistrar
- All Implemented Interfaces:
EventListener, Aware, DisposableBean, InitializingBean, ApplicationContextAware, ApplicationListener<ApplicationEvent>, EnvironmentAware, GenericApplicationListener, SmartApplicationListener, Ordered
public class SpringApplicationAdminMXBeanRegistrar
extends Object
implements ApplicationContextAware, GenericApplicationListener, EnvironmentAware, InitializingBean, DisposableBean
Register a
SpringApplicationAdminMXBean implementation to the platform
MBeanServer.- Since:
- 1.3.0
- Author:
- Stephane Nicoll, Andy Wilkinson
-
Field Summary
Fields inherited from interface Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddestroy()intgetOrder()voidvoidsetApplicationContext(ApplicationContext applicationContext) voidsetEnvironment(Environment environment) booleansupportsEventType(ResolvableType eventType) booleansupportsSourceType(@Nullable Class<?> sourceType) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ApplicationListener
supportsAsyncExecutionMethods inherited from interface GenericApplicationListener
supportsEventTypeMethods inherited from interface SmartApplicationListener
getListenerId
-
Constructor Details
-
SpringApplicationAdminMXBeanRegistrar
- Throws:
MalformedObjectNameException
-
-
Method Details
-
setApplicationContext
- Specified by:
setApplicationContextin interfaceApplicationContextAware- Throws:
BeansException
-
setEnvironment
- Specified by:
setEnvironmentin interfaceEnvironmentAware
-
supportsEventType
- Specified by:
supportsEventTypein interfaceGenericApplicationListener
-
supportsSourceType
- Specified by:
supportsSourceTypein interfaceSmartApplicationListener
-
onApplicationEvent
- Specified by:
onApplicationEventin interfaceApplicationListener<ApplicationEvent>
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceOrdered- Specified by:
getOrderin interfaceSmartApplicationListener
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceInitializingBean- Throws:
Exception
-
destroy
- Specified by:
destroyin interfaceDisposableBean- Throws:
Exception
-