类 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<ApplicationReadyEvent>
,org.springframework.context.EnvironmentAware
public class SpringApplicationAdminMXBeanRegistrar extends Object implements org.springframework.context.ApplicationContextAware, org.springframework.context.EnvironmentAware, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.context.ApplicationListener<ApplicationReadyEvent>
Register aSpringApplicationAdminMXBean
implementation to the platformMBeanServer
.- 从以下版本开始:
- 1.3.0
构造器概要
构造器 构造器 说明 SpringApplicationAdminMXBeanRegistrar(String name)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
afterPropertiesSet()
void
destroy()
void
onApplicationEvent(ApplicationReadyEvent event)
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
void
setEnvironment(org.springframework.core.env.Environment environment)
构造器详细资料
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
onApplicationEvent
public void onApplicationEvent(ApplicationReadyEvent event)
- 指定者:
onApplicationEvent
在接口中org.springframework.context.ApplicationListener<ApplicationReadyEvent>
afterPropertiesSet
public void afterPropertiesSet() throws Exception
- 指定者:
afterPropertiesSet
在接口中org.springframework.beans.factory.InitializingBean
- 抛出:
Exception