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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
destroy()
int
getOrder()
void
void
setApplicationContext
(ApplicationContext applicationContext) void
setEnvironment
(Environment environment) boolean
supportsEventType
(ResolvableType eventType) boolean
supportsSourceType
(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
-
Constructor Details
-
SpringApplicationAdminMXBeanRegistrar
- Throws:
MalformedObjectNameException
-
-
Method Details
-
setApplicationContext
- Specified by:
setApplicationContext
in interfaceApplicationContextAware
- Throws:
BeansException
-
setEnvironment
- Specified by:
setEnvironment
in interfaceEnvironmentAware
-
supportsEventType
- Specified by:
supportsEventType
in interfaceGenericApplicationListener
-
supportsSourceType
- Specified by:
supportsSourceType
in interfaceSmartApplicationListener
-
onApplicationEvent
- Specified by:
onApplicationEvent
in interfaceApplicationListener<ApplicationEvent>
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceOrdered
- Specified by:
getOrder
in interfaceSmartApplicationListener
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceInitializingBean
- Throws:
Exception
-
destroy
- Specified by:
destroy
in interfaceDisposableBean
- Throws:
Exception
-