Search in sources :

Example 1 with UserAdminMBean

use of org.osgi.jmx.service.useradmin.UserAdminMBean in project aries by apache.

the class UserAdminMBeanHandler method constructInjectMBean.

/**
     * @see org.apache.aries.jmx.AbstractCompendiumHandler#constructInjectMBean(java.lang.Object)
     */
@Override
protected StandardMBean constructInjectMBean(Object targetService) {
    UserAdminMBean uaMBean = new UserAdmin((org.osgi.service.useradmin.UserAdmin) targetService);
    StandardMBean mbean = null;
    try {
        mbean = new StandardMBean(uaMBean, UserAdminMBean.class);
    } catch (NotCompliantMBeanException e) {
        Logger logger = agentContext.getLogger();
        logger.log(LogService.LOG_ERROR, "Not compliant MBean", e);
    }
    return mbean;
}
Also used : StandardMBean(javax.management.StandardMBean) NotCompliantMBeanException(javax.management.NotCompliantMBeanException) UserAdminMBean(org.osgi.jmx.service.useradmin.UserAdminMBean) Logger(org.apache.aries.jmx.Logger)

Aggregations

NotCompliantMBeanException (javax.management.NotCompliantMBeanException)1 StandardMBean (javax.management.StandardMBean)1 Logger (org.apache.aries.jmx.Logger)1 UserAdminMBean (org.osgi.jmx.service.useradmin.UserAdminMBean)1