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<javax.management.remote.JMXConnectorServer>,org.springframework.beans.factory.InitializingBean
public class ConnectorServerFactory extends org.springframework.jmx.support.ConnectorServerFactoryBeanFactory that creates a JSR-160JMXConnectorServer, optionally registers it with theMBeanServerand then starts it.- Author:
- Stas Sokolovsky
-
-
Constructor Summary
Constructors Constructor Description ConnectorServerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()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)booleanisEnabled()voidsetEnabled(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, setThreaded
-
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
Enables JMX connectivity during initialization, seeafterPropertiesSet()- Parameters:
enabled- boolean
-
afterPropertiesSet
public void afterPropertiesSet() throws javax.management.JMException, java.io.IOExceptionWraps 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:
javax.management.JMExceptionjava.io.IOException- See Also:
ConnectorServerFactoryBean.afterPropertiesSet()
-
-