类 SpringApplicationAdminMXBeanRegistrar
- java.lang.Object
- org.springframework.boot.admin.SpringApplicationAdminMXBeanRegistrar
- 所有已实现的接口:
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
.- 从以下版本开始:
- 1.3.0
构造器概要
构造器 构造器 说明 SpringApplicationAdminMXBeanRegistrar(String name)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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)
构造器详细资料
SpringApplicationAdminMXBeanRegistrar
public SpringApplicationAdminMXBeanRegistrar(String name) throws MalformedObjectNameException
方法详细资料
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
- 指定者:
setApplicationContext
在接口中org.springframework.context.ApplicationContextAware
- 抛出:
org.springframework.beans.BeansException
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment)
- 指定者:
setEnvironment
在接口中org.springframework.context.EnvironmentAware
supportsEventType
public boolean supportsEventType(org.springframework.core.ResolvableType eventType)
- 指定者:
supportsEventType
在接口中org.springframework.context.event.GenericApplicationListener
supportsSourceType
public boolean supportsSourceType(@Nullable Class<?> sourceType)
- 指定者:
supportsSourceType
在接口中org.springframework.context.event.GenericApplicationListener
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
- 指定者:
onApplicationEvent
在接口中org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
getOrder
public int getOrder()
- 指定者:
getOrder
在接口中org.springframework.context.event.GenericApplicationListener
- 指定者:
getOrder
在接口中org.springframework.core.Ordered
afterPropertiesSet
public void afterPropertiesSet() throws Exception
- 指定者:
afterPropertiesSet
在接口中org.springframework.beans.factory.InitializingBean
- 抛出:
Exception