Class ConnectorServerFactory

  • All Implemented Interfaces:
    org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<javax.management.remote.JMXConnectorServer>, org.springframework.beans.factory.InitializingBean

    public class ConnectorServerFactory
    extends org.springframework.jmx.support.ConnectorServerFactoryBean
    Factory that creates a JSR-160 JMXConnectorServer, optionally registers it with the MBeanServer and then starts it.
    Author:
    Stas Sokolovsky
    • Field Summary

      • Fields inherited from class org.springframework.jmx.support.ConnectorServerFactoryBean

        DEFAULT_SERVICE_URL
      • Fields inherited from class org.springframework.jmx.support.MBeanRegistrationSupport

        server
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterPropertiesSet()
      Wraps original initialization method to log errors, rather than having exceptions occur within the Spring framework itself (this would cause the entire webapp to fail)
      boolean isEnabled()  
      void setEnabled​(boolean enabled)
      Enables JMX connectivity during initialization, see afterPropertiesSet()
      • Methods inherited from class org.springframework.jmx.support.ConnectorServerFactoryBean

        destroy, getObject, getObjectType, isSingleton, setDaemon, setEnvironment, setEnvironmentMap, setForwarder, setObjectName, setServiceUrl, setThreaded
      • Methods inherited from class org.springframework.jmx.support.MBeanRegistrationSupport

        doRegister, doUnregister, getRegisteredObjectNames, getServer, onRegister, onRegister, onUnregister, setRegistrationPolicy, setServer, unregisterBeans
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConnectorServerFactory

        public ConnectorServerFactory()
    • Method Detail

      • isEnabled

        public boolean isEnabled()
      • setEnabled

        public void setEnabled​(boolean enabled)
        Enables JMX connectivity during initialization, see afterPropertiesSet()
        Parameters:
        enabled - boolean
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws javax.management.JMException,
                                       java.io.IOException
        Wraps original initialization method to log errors, rather than having exceptions occur within the Spring framework itself (this would cause the entire webapp to fail)
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Overrides:
        afterPropertiesSet in class org.springframework.jmx.support.ConnectorServerFactoryBean
        Throws:
        javax.management.JMException
        java.io.IOException
        See Also:
        ConnectorServerFactoryBean.afterPropertiesSet()