register FilterBean, method parameter from private void registerBeans(..) is now typed
@@ -37,12 +37,12 @@ import org.apache.log4j.Logger;
import org.apache.wiki.Release;
import org.apache.wiki.WikiEngine;
import org.apache.wiki.api.engine.AdminBeanManager;
-import org.apache.wiki.api.engine.PluginManager;
import org.apache.wiki.event.WikiEngineEvent;
import org.apache.wiki.event.WikiEvent;
import org.apache.wiki.event.WikiEventListener;
import org.apache.wiki.modules.WikiModuleInfo;
import org.apache.wiki.ui.admin.beans.CoreBean;
+import org.apache.wiki.ui.admin.beans.FilterBean;
import org.apache.wiki.ui.admin.beans.PluginBean;
import org.apache.wiki.ui.admin.beans.SearchManagerBean;
import org.apache.wiki.ui.admin.beans.UserBean;
@@ -147,9 +147,9 @@ public class DefaultAdminBeanManager implements WikiEventListener, AdminBeanMana
*
* @param c Collection of WikiModuleInfo instances
*/
- private void registerBeans( Collection c ) {
- for( Iterator i = c.iterator(); i.hasNext(); ) {
- String abname = ((WikiModuleInfo)i.next()).getAdminBeanClass();
+ private void registerBeans( Collection< WikiModuleInfo > c ) {
+ for( Iterator< WikiModuleInfo > i = c.iterator(); i.hasNext(); ) {
+ String abname = i.next().getAdminBeanClass();
try {
if( abname != null && abname.length() > 0 ) {
@@ -177,12 +177,13 @@ public class DefaultAdminBeanManager implements WikiEventListener, AdminBeanMana
registerAdminBean( new UserBean( m_engine ) );
registerAdminBean( new SearchManagerBean( m_engine ) );
registerAdminBean( new PluginBean( m_engine ) );
+ registerAdminBean( new FilterBean( m_engine ) );
} catch( NotCompliantMBeanException e ) {
log.error( e.getMessage(), e );
}
registerBeans( m_engine.getEditorManager().modules() );
- PluginManager pm = m_engine.getPluginManager();
- registerBeans( pm.modules() );
+ registerBeans( m_engine.getPluginManager().modules() );
+ registerBeans( m_engine.getFilterManager().modules() );
}
/* (non-Javadoc)
