public class SpringApplicationAdminMXBeanRegistrar extends Object implements ApplicationContextAware, EnvironmentAware, InitializingBean, DisposableBean, ApplicationListener<ApplicationReadyEvent>
SpringApplicationAdminMXBean
implementation to the platform
MBeanServer
.Constructor and Description |
---|
SpringApplicationAdminMXBeanRegistrar(String name) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy() |
void |
onApplicationEvent(ApplicationReadyEvent event) |
void |
setApplicationContext(ApplicationContext applicationContext) |
void |
setEnvironment(Environment environment) |
public SpringApplicationAdminMXBeanRegistrar(String name) throws MalformedObjectNameException
MalformedObjectNameException
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext
in interface ApplicationContextAware
BeansException
public void setEnvironment(Environment environment)
setEnvironment
in interface EnvironmentAware
public void onApplicationEvent(ApplicationReadyEvent event)
onApplicationEvent
in interface ApplicationListener<ApplicationReadyEvent>
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public void destroy() throws Exception
destroy
in interface DisposableBean
Exception
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.