public class SpringApplicationAdminMXBeanRegistrar extends Object implements ApplicationContextAware, EnvironmentAware, InitializingBean, DisposableBean
SpringApplicationAdminMXBean
implementation to the platform
MBeanServer
.Constructor and Description |
---|
SpringApplicationAdminMXBeanRegistrar(String name) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy() |
void |
onApplicationReadyEvent(ApplicationReadyEvent event) |
void |
onWebServerInitializedEvent(WebServerInitializedEvent 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
@EventListener public void onApplicationReadyEvent(ApplicationReadyEvent event)
@EventListener public void onWebServerInitializedEvent(WebServerInitializedEvent event)
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.