use of org.apache.wiki.ui.admin.AdminBean in project jspwiki by apache.
the class AdminBeanIteratorTag method resetIterator.
/**
* {@inheritDoc}
*/
@Override
public void resetIterator() {
AdminBeanManager mgr = m_wikiContext.getEngine().getAdminBeanManager();
Collection<AdminBean> beans = mgr.getAllBeans();
ArrayList<AdminBean> typedBeans = new ArrayList<AdminBean>();
for (Iterator<AdminBean> i = beans.iterator(); i.hasNext(); ) {
AdminBean ab = i.next();
if (ab.getType() == m_type) {
typedBeans.add(ab);
}
}
setList(typedBeans);
}
Aggregations