Code example for ConnectorServerFactoryBean

0
 * Factory that creates a JSR-160 <code>JMXConnectorServer</code>,  
 * optionally registers it with the <code>MBeanServer</code> and then starts it. 
 *  
 * @author Stas Sokolovsky 
 */ 
public class ConnectorServerFactory extends ConnectorServerFactoryBean
{ 
    private static Log logger = LogFactory.getLog(ConnectorServerFactory.class);
     
    private boolean enabled = false;
     
    public boolean isEnabled() 
    { 
        return enabled;
    } 
 
    /** 
     * Enables JMX connectivity during initialization, see {@link ConnectorServerFactory#afterPropertiesSet()} 
     * @param enabled 
     */