Package org.springframework.boot.admin
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 org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddestroy()intgetOrder()voidvoidsetApplicationContext(ApplicationContext applicationContext) voidsetEnvironment(Environment environment) booleansupportsEventType(ResolvableType eventType) booleansupportsSourceType(Class<?> sourceType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecutionMethods inherited from interface org.springframework.context.event.GenericApplicationListener
supportsEventTypeMethods inherited from interface org.springframework.context.event.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
-