Package org.springframework.boot.admin
Class SpringApplicationAdminMXBeanRegistrar
- java.lang.Object
- org.springframework.boot.admin.SpringApplicationAdminMXBeanRegistrar
- All Implemented Interfaces:
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.core.Ordered
public class SpringApplicationAdminMXBeanRegistrar extends 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 aSpringApplicationAdminMXBean
implementation to the platformMBeanServer
.- Since:
- 1.3.0
Constructor Summary
Constructors Constructor Description SpringApplicationAdminMXBeanRegistrar(String name)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(Class<?> sourceType)
Constructor Detail
SpringApplicationAdminMXBeanRegistrar
public SpringApplicationAdminMXBeanRegistrar(String name) throws MalformedObjectNameException
- Throws:
MalformedObjectNameException
Method Detail
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment)
- Specified by:
setEnvironment
in interfaceorg.springframework.context.EnvironmentAware
supportsEventType
public boolean supportsEventType(org.springframework.core.ResolvableType eventType)
- Specified by:
supportsEventType
in interfaceorg.springframework.context.event.GenericApplicationListener
supportsSourceType
public boolean supportsSourceType(@Nullable Class<?> sourceType)
- Specified by:
supportsSourceType
in interfaceorg.springframework.context.event.GenericApplicationListener
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
getOrder
public int getOrder()
- Specified by:
getOrder
in interfaceorg.springframework.context.event.GenericApplicationListener
- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
afterPropertiesSet
public void afterPropertiesSet() throws Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception