public class EndpointMBeanExporter
extends org.springframework.jmx.export.MBeanExporter
implements org.springframework.context.SmartLifecycle, org.springframework.beans.factory.BeanFactoryAware
ApplicationListener
that registers all known Endpoint
s with an
MBeanServer
using the MBeanExporter
located from the application
context.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DOMAIN |
Constructor and Description |
---|
EndpointMBeanExporter() |
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 |
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, afterPropertiesSet, createAndConfigureMBean, createModelMBean, destroy, isBeanDefinitionLazyInit, isMBean, onRegister, onUnregister, registerBeanNameOrInstance, registerBeans, registerManagedResource, registerManagedResource, setAllowEagerInit, setAssembler, setAutodetect, setAutodetectMode, setAutodetectModeName, setBeanClassLoader, setBeans, setExcludedBeans, setExposeManagedResourceClassLoader, setListeners, setNamingStrategy, setNotificationListenerMappings, setNotificationListeners, unregisterManagedResource
public static final String DEFAULT_DOMAIN
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
setBeanFactory
in class org.springframework.jmx.export.MBeanExporter
public void setDomain(String domain)
public void setEnsureUniqueRuntimeObjectNames(boolean ensureUniqueRuntimeObjectNames)
setEnsureUniqueRuntimeObjectNames
in class org.springframework.jmx.export.MBeanExporter
public 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.MBeanExporter
MalformedObjectNameException
public final int getPhase()
getPhase
in interface org.springframework.context.Phased
public final boolean isAutoStartup()
isAutoStartup
in interface org.springframework.context.SmartLifecycle
public final boolean isRunning()
isRunning
in interface org.springframework.context.Lifecycle
public final void start()
start
in interface org.springframework.context.Lifecycle
public final void stop()
stop
in interface org.springframework.context.Lifecycle
public final void stop(Runnable callback)
stop
in interface org.springframework.context.SmartLifecycle
Copyright © 2014. All rights reserved.