public class EndpointMBeanExporter
extends org.springframework.jmx.export.MBeanExporter
implements org.springframework.context.SmartLifecycle, org.springframework.context.ApplicationContextAware
ApplicationListener that registers all known Endpoints with an
MBeanServer using the MBeanExporter located from the application
context.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DOMAIN
The default JMX domain.
|
| Constructor and Description |
|---|
EndpointMBeanExporter()
Create a new
EndpointMBeanExporter instance. |
EndpointMBeanExporter(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Create a new
EndpointMBeanExporter instance. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected EndpointMBean |
getEndpointMBean(String beanName,
Endpoint<?> endpoint) |
protected ObjectName |
getObjectName(Object bean,
String beanKey) |
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
protected void |
locateAndRegisterEndpoints() |
protected void |
registerEndpoint(String beanName,
Endpoint<?> endpoint) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setDomain(String domain) |
void |
setEnsureUniqueRuntimeObjectNames(boolean ensureUniqueRuntimeObjectNames) |
void |
setObjectNameStaticProperties(Properties objectNameStaticProperties) |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
adaptMBeanIfPossible, addExcludedBean, afterPropertiesSet, afterSingletonsInstantiated, createAndConfigureMBean, createModelMBean, destroy, isBeanDefinitionLazyInit, isMBean, onRegister, onUnregister, registerBeanNameOrInstance, registerBeans, registerManagedResource, registerManagedResource, setAllowEagerInit, setAssembler, setAutodetect, setAutodetectMode, setAutodetectModeName, setBeanClassLoader, setBeans, setExcludedBeans, setExposeManagedResourceClassLoader, setListeners, setNamingStrategy, setNotificationListenerMappings, setNotificationListeners, unregisterManagedResourcepublic static final String DEFAULT_DOMAIN
public EndpointMBeanExporter()
EndpointMBeanExporter instance.public EndpointMBeanExporter(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
EndpointMBeanExporter instance.objectMapper - the object mapperpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwaresetBeanFactory in class org.springframework.jmx.export.MBeanExporterpublic void setDomain(String domain)
public void setEnsureUniqueRuntimeObjectNames(boolean ensureUniqueRuntimeObjectNames)
setEnsureUniqueRuntimeObjectNames in class org.springframework.jmx.export.MBeanExporterpublic void setObjectNameStaticProperties(Properties objectNameStaticProperties)
protected void doStart()
protected void locateAndRegisterEndpoints()
protected EndpointMBean getEndpointMBean(String beanName, Endpoint<?> endpoint)
protected ObjectName getObjectName(Object bean, String beanKey) throws MalformedObjectNameException
getObjectName in class org.springframework.jmx.export.MBeanExporterMalformedObjectNameExceptionpublic final int getPhase()
getPhase in interface org.springframework.context.Phasedpublic final boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecyclepublic final boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic final void start()
start in interface org.springframework.context.Lifecyclepublic final void stop()
stop in interface org.springframework.context.Lifecyclepublic final void stop(Runnable callback)
stop in interface org.springframework.context.SmartLifecycleCopyright © 2015 Pivotal Software, Inc.. All rights reserved.