Class ConnectorServerFactory

java.lang.Object
org.springframework.jmx.support.MBeanRegistrationSupport
org.springframework.jmx.support.ConnectorServerFactoryBean
org.alfresco.mbeans.ConnectorServerFactory
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<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

    Fields inherited from interface org.springframework.beans.factory.FactoryBean

    OBJECT_TYPE_ATTRIBUTE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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
     
    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 Details

    • ConnectorServerFactory

      public ConnectorServerFactory()
  • Method Details

    • 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 JMException, 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:
      JMException
      IOException
      See Also:
      • ConnectorServerFactoryBean.afterPropertiesSet()