public class SpringApplicationAdminMXBeanRegistrar extends Object implements ApplicationContextAware, GenericApplicationListener, EnvironmentAware, InitializingBean, DisposableBean
SpringApplicationAdminMXBean
implementation to the platform
MBeanServer
.HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
SpringApplicationAdminMXBeanRegistrar(String name) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy() |
int |
getOrder() |
void |
onApplicationEvent(ApplicationEvent event) |
void |
setApplicationContext(ApplicationContext applicationContext) |
void |
setEnvironment(Environment environment) |
boolean |
supportsEventType(ResolvableType eventType) |
boolean |
supportsSourceType(Class<?> sourceType) |
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 boolean supportsEventType(ResolvableType eventType)
supportsEventType
in interface GenericApplicationListener
public boolean supportsSourceType(Class<?> sourceType)
supportsSourceType
in interface GenericApplicationListener
public void onApplicationEvent(ApplicationEvent event)
onApplicationEvent
in interface ApplicationListener<ApplicationEvent>
public int getOrder()
getOrder
in interface GenericApplicationListener
getOrder
in interface Ordered
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.