public ConfigMBeanBase constructConfigMBean() throws MBeanConfigException
{
String className = MBeansDescriptions.CONFIG_MBEANS_BASE_CLASS_PREFIX + m_descr.getMBeanClassName();
Class cl;
ConfigMBeanBase configMBean;
try
{
cl = Class.forName(className);
//create configMBean by defaul constructor;
configMBean = (ConfigMBeanBase)cl.newInstance();
}
catch (Exception e)
{
String msg = localStrings.getString( "admin.server.core.mbean.config.naming.mbeannamingdescriptor_couldnot_create_mbean_class", className );
throw new MBeanConfigException( msg );
}
configMBean.setAdminContext(m_AdminContext);
configMBean.initialize(this);
return configMBean;
}