Package org.alfresco.mbeans
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_URLFields inherited from class org.springframework.jmx.support.MBeanRegistrationSupport
serverFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidWraps original initialization method to log errors, rather than having exceptions occur within the Spring framework itself (this would cause the entire webapp to fail)booleanvoidsetEnabled(boolean enabled) Enables JMX connectivity during initialization, seeafterPropertiesSet()Methods inherited from class org.springframework.jmx.support.ConnectorServerFactoryBean
destroy, getObject, getObjectType, isSingleton, setDaemon, setEnvironment, setEnvironmentMap, setForwarder, setObjectName, setServiceUrl, setThreadedMethods inherited from class org.springframework.jmx.support.MBeanRegistrationSupport
doRegister, doUnregister, getRegisteredObjectNames, getServer, onRegister, onRegister, onUnregister, setRegistrationPolicy, setServer, unregisterBeans
-
Constructor Details
-
ConnectorServerFactory
public ConnectorServerFactory()
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) Enables JMX connectivity during initialization, seeafterPropertiesSet()- Parameters:
enabled- boolean
-
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)- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Overrides:
afterPropertiesSetin classorg.springframework.jmx.support.ConnectorServerFactoryBean- Throws:
JMExceptionIOException- See Also:
-
ConnectorServerFactoryBean.afterPropertiesSet()
-