public class EndpointMBeanExporter extends MBeanExporter implements SmartLifecycle, BeanFactoryAware, 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 |
AUTODETECT_ALL, AUTODETECT_ASSEMBLER, AUTODETECT_MBEAN, AUTODETECT_NONEREGISTRATION_FAIL_ON_EXISTING, REGISTRATION_IGNORE_EXISTING, REGISTRATION_REPLACE_EXISTING, server| 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 |
setApplicationContext(ApplicationContext applicationContext) |
void |
setBeanFactory(BeanFactory beanFactory) |
void |
setDomain(String domain) |
void |
setEnsureUniqueRuntimeObjectNames(boolean ensureUniqueRuntimeObjectNames) |
void |
setObjectNameStaticProperties(Properties objectNameStaticProperties) |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
adaptMBeanIfPossible, 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, unregisterManagedResourcedoRegister, doUnregister, getRegisteredObjectNames, getServer, onRegister, setRegistrationBehavior, setRegistrationBehaviorName, setRegistrationPolicy, setServer, unregisterBeanspublic static final String DEFAULT_DOMAIN
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext in interface ApplicationContextAwareBeansExceptionpublic void setBeanFactory(BeanFactory beanFactory)
setBeanFactory in interface BeanFactoryAwaresetBeanFactory in class MBeanExporterpublic void setDomain(String domain)
public void setEnsureUniqueRuntimeObjectNames(boolean ensureUniqueRuntimeObjectNames)
setEnsureUniqueRuntimeObjectNames in class 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 MBeanExporterMalformedObjectNameExceptionpublic final boolean isAutoStartup()
isAutoStartup in interface SmartLifecyclepublic final void stop(Runnable callback)
stop in interface SmartLifecycleCopyright © 2014 Pivotal Software, Inc.. All rights reserved.