Package com.avast.syringe.config.mbean

Examples of com.avast.syringe.config.mbean.ConfigDynamicBean


                converter, enhancer);
    }

    private <T> void registerMBean(String configFileName, T instance, XmlConfig xmlConfig, ConfigInjector<?> configInjector) throws MalformedObjectNameException, InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException {
        // JMX - register the configuration MBean
        ConfigDynamicBean configDynamicBean =
                new ConfigDynamicBean(instance, xmlConfig.getClassName(), "", configInjector.getInjections(),
                        this);
        ObjectName configMBeanName = new ObjectName("com.avast.syringe.instances:type=" + xmlConfig.getClassName()
                + ",name=" + configFileName);
        mBeanServer.registerMBean(configDynamicBean, configMBeanName);
    }
View Full Code Here

TOP

Related Classes of com.avast.syringe.config.mbean.ConfigDynamicBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.