use of org.osgi.jmx.service.cm.ConfigurationAdminMBean in project aries by apache.
the class ConfigurationAdminMBeanHandler method constructInjectMBean.
/**
* @see org.apache.aries.jmx.AbstractCompendiumHandler#constructInjectMBean(java.lang.Object)
*/
@Override
protected StandardMBean constructInjectMBean(Object targetService) {
ConfigurationAdminMBean caMBean = new org.apache.aries.jmx.cm.ConfigurationAdmin((org.osgi.service.cm.ConfigurationAdmin) targetService);
StandardMBean mbean = null;
try {
mbean = new StandardMBean(caMBean, ConfigurationAdminMBean.class);
} catch (NotCompliantMBeanException e) {
Logger logger = agentContext.getLogger();
logger.log(LogService.LOG_ERROR, "Failed to instantiate MBean for " + ConfigurationAdminMBean.class.getName(), e);
}
return mbean;
}
Aggregations