org.hippoecm.hst.site.container
Class UnregisterableMBeanExporter

java.lang.Object
  extended by org.springframework.jmx.support.MBeanRegistrationSupport
      extended by org.springframework.jmx.export.MBeanExporter
          extended by org.hippoecm.hst.site.container.UnregisterableMBeanExporter
All Implemented Interfaces:
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 UnregisterableMBeanExporter
extends org.springframework.jmx.export.MBeanExporter

UnregisterableMBeanExporter

This class overrides the protected unregisterBeans() method to enable to invoke the method from HST-2 Container. HST-2 Container should unregister the existing MBeans first before initializing a new component manager because the old component manager can be destroyed after the new component manager is created, so the old component manager can trigger removals of the new MBeans which are just registered by the new component manager.

Version:
$Id$

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
UnregisterableMBeanExporter()
           
 
Method Summary
 void unregisterBeans()
           
 
Methods inherited from class org.springframework.jmx.export.MBeanExporter
adaptMBeanIfPossible, afterPropertiesSet, createAndConfigureMBean, createModelMBean, destroy, getObjectName, isBeanDefinitionLazyInit, isMBean, onRegister, onUnregister, registerBeanNameOrInstance, registerBeans, registerManagedResource, registerManagedResource, setAllowEagerInit, setAssembler, setAutodetect, setAutodetectMode, setAutodetectModeName, setBeanClassLoader, setBeanFactory, setBeans, setEnsureUniqueRuntimeObjectNames, setExcludedBeans, setExposeManagedResourceClassLoader, setListeners, setNamingStrategy, setNotificationListenerMappings, setNotificationListeners, unregisterManagedResource
 
Methods inherited from class org.springframework.jmx.support.MBeanRegistrationSupport
doRegister, doUnregister, getRegisteredObjectNames, getServer, onRegister, setRegistrationBehavior, setRegistrationBehaviorName, setServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnregisterableMBeanExporter

public UnregisterableMBeanExporter()
Method Detail

unregisterBeans

public void unregisterBeans()
Overrides:
unregisterBeans in class org.springframework.jmx.support.MBeanRegistrationSupport


Copyright © 2008-2012 Hippo. All Rights Reserved.