Search in sources :

Example 1 with SearchManagerBean

use of org.apache.wiki.ui.admin.beans.SearchManagerBean in project jspwiki by apache.

the class DefaultAdminBeanManager method reload.

// FIXME: Should unload the beans first.
private void reload() {
    m_allBeans = new ArrayList<>();
    try {
        registerAdminBean(new CoreBean(m_engine));
        registerAdminBean(new UserBean(m_engine));
        registerAdminBean(new SearchManagerBean(m_engine));
        registerAdminBean(new PluginBean(m_engine));
        registerAdminBean(new FilterBean(m_engine));
    } catch (final NotCompliantMBeanException e) {
        log.error(e.getMessage(), e);
    }
    for (final ModuleManager moduleManager : m_engine.getManagers(ModuleManager.class)) {
        registerBeans(moduleManager.modules());
    }
}
Also used : SearchManagerBean(org.apache.wiki.ui.admin.beans.SearchManagerBean) UserBean(org.apache.wiki.ui.admin.beans.UserBean) CoreBean(org.apache.wiki.ui.admin.beans.CoreBean) NotCompliantMBeanException(javax.management.NotCompliantMBeanException) PluginBean(org.apache.wiki.ui.admin.beans.PluginBean) ModuleManager(org.apache.wiki.modules.ModuleManager) FilterBean(org.apache.wiki.ui.admin.beans.FilterBean)

Aggregations

NotCompliantMBeanException (javax.management.NotCompliantMBeanException)1 ModuleManager (org.apache.wiki.modules.ModuleManager)1 CoreBean (org.apache.wiki.ui.admin.beans.CoreBean)1 FilterBean (org.apache.wiki.ui.admin.beans.FilterBean)1 PluginBean (org.apache.wiki.ui.admin.beans.PluginBean)1 SearchManagerBean (org.apache.wiki.ui.admin.beans.SearchManagerBean)1 UserBean (org.apache.wiki.ui.admin.beans.UserBean)1