register TemplateManager modules as mbeans
@@ -29,6 +29,7 @@ import org.apache.wiki.event.WikiEvent;
import org.apache.wiki.event.WikiEventListener;
import org.apache.wiki.modules.WikiModuleInfo;
import org.apache.wiki.ui.EditorManager;
+import org.apache.wiki.ui.TemplateManager;
import org.apache.wiki.ui.admin.beans.CoreBean;
import org.apache.wiki.ui.admin.beans.FilterBean;
import org.apache.wiki.ui.admin.beans.PluginBean;
@@ -78,9 +79,7 @@ public class DefaultAdminBeanManager implements WikiEventListener, AdminBeanMana
initialize();
}
- /* (non-Javadoc)
- * @see org.apache.wiki.ui.admin.AdminBeanManager#initialize()
- */
+ /** {@inheritDoc} */
@Override
public void initialize() {
reload();
@@ -110,7 +109,6 @@ public class DefaultAdminBeanManager implements WikiEventListener, AdminBeanMana
try {
if( ab instanceof DynamicMBean && m_mbeanServer != null ) {
final ObjectName name = getObjectName( ab );
-
if( !m_mbeanServer.isRegistered( name ) ) {
m_mbeanServer.registerMBean( ab, name );
}
@@ -139,8 +137,8 @@ public class DefaultAdminBeanManager implements WikiEventListener, AdminBeanMana
}
/**
- * Registers all the beans from a collection of WikiModuleInfos. If some of the beans
- * fail, logs the message and keeps going to the next bean.
+ * Registers all the beans from a collection of WikiModuleInfos. If some of the beans fail, logs the message and keeps going to the
+ * next bean.
*
* @param c Collection of WikiModuleInfo instances
*/
@@ -176,6 +174,7 @@ public class DefaultAdminBeanManager implements WikiEventListener, AdminBeanMana
registerBeans( m_engine.getManager( EditorManager.class ).modules() );
registerBeans( m_engine.getManager( PluginManager.class ).modules() );
registerBeans( m_engine.getManager( FilterManager.class ).modules() );
+ registerBeans( m_engine.getManager( TemplateManager.class ).modules() );
}
/* (non-Javadoc)
