com.atlassian.confluence.jmx
Class MBeanExporterWithUnregisterImpl

java.lang.Object
  extended by org.springframework.jmx.support.MBeanRegistrationSupport
      extended by org.springframework.jmx.export.MBeanExporter
          extended by com.atlassian.confluence.jmx.MBeanExporterWithUnregisterImpl
All Implemented Interfaces:
MBeanExporterWithUnregister, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.jmx.export.MBeanExportOperations

public class MBeanExporterWithUnregisterImpl
extends org.springframework.jmx.export.MBeanExporter
implements MBeanExporterWithUnregister

Extends Spring's MBeanExporter to provide an unregister operation (which for some reason they don't have).


Field Summary
 
Fields inherited from class org.springframework.jmx.export.MBeanExporter
AUTODETECT_ALL, AUTODETECT_ASSEMBLER, AUTODETECT_MBEAN, AUTODETECT_NONE
 
Fields inherited from class org.springframework.jmx.support.MBeanRegistrationSupport
logger, registeredBeans, REGISTRATION_FAIL_ON_EXISTING, REGISTRATION_IGNORE_EXISTING, REGISTRATION_REPLACE_EXISTING, server
 
Constructor Summary
MBeanExporterWithUnregisterImpl()
           
 
Method Summary
 void afterPropertiesSet()
           
 boolean isEnabled()
           
static void main(java.lang.String[] args)
           
 void registerManagedResource(java.lang.Object o, javax.management.ObjectName objectName)
           
 void setEnabled(boolean enabled)
           
 void unregisterBean(java.lang.String name)
           
 
Methods inherited from class org.springframework.jmx.export.MBeanExporter
createAndConfigureMBean, createModelMBean, destroy, getObjectName, isBeanDefinitionLazyInit, isMBean, onRegister, onUnregister, registerBeanNameOrInstance, registerBeans, registerManagedResource, setAssembler, setAutodetect, setAutodetectMode, setAutodetectModeName, setBeanClassLoader, setBeanFactory, setBeans, setEnsureUniqueRuntimeObjectNames, setExcludedBeans, setExposeManagedResourceClassLoader, setListeners, setNamingStrategy, setNotificationListenerMappings, setNotificationListeners
 
Methods inherited from class org.springframework.jmx.support.MBeanRegistrationSupport
doRegister, setRegistrationBehavior, setRegistrationBehaviorName, setServer, unregisterBeans
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.jmx.export.MBeanExportOperations
registerManagedResource
 
Methods inherited from interface org.springframework.beans.factory.BeanClassLoaderAware
setBeanClassLoader
 
Methods inherited from interface org.springframework.beans.factory.BeanFactoryAware
setBeanFactory
 
Methods inherited from interface org.springframework.beans.factory.DisposableBean
destroy
 

Constructor Detail

MBeanExporterWithUnregisterImpl

public MBeanExporterWithUnregisterImpl()
Method Detail

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface MBeanExporterWithUnregister

setEnabled

public void setEnabled(boolean enabled)
Specified by:
setEnabled in interface MBeanExporterWithUnregister

afterPropertiesSet

public void afterPropertiesSet()
Specified by:
afterPropertiesSet in interface MBeanExporterWithUnregister
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Overrides:
afterPropertiesSet in class org.springframework.jmx.export.MBeanExporter

unregisterBean

public void unregisterBean(java.lang.String name)
Specified by:
unregisterBean in interface MBeanExporterWithUnregister

registerManagedResource

public void registerManagedResource(java.lang.Object o,
                                    javax.management.ObjectName objectName)
                             throws org.springframework.jmx.export.MBeanExportException
Specified by:
registerManagedResource in interface org.springframework.jmx.export.MBeanExportOperations
Overrides:
registerManagedResource in class org.springframework.jmx.export.MBeanExporter
Throws:
org.springframework.jmx.export.MBeanExportException

main

public static void main(java.lang.String[] args)


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.