use of de.janrufmonitor.repository.ICallerManager in project janrufmonitor by tbrandt77.
the class ReIdentifyAction method getAllActiveCallerManagers.
private List getAllActiveCallerManagers(IRuntime r) {
List allManagers = r.getCallerManagerFactory().getAllCallerManagers();
List activeManager = new ArrayList();
Object o = null;
ICallerManager cm = null;
for (int i = 0; i < allManagers.size(); i++) {
o = allManagers.get(i);
if (o != null && o instanceof ICallerManager) {
cm = (ICallerManager) o;
if (cm.isActive() && cm.isSupported(IIdentifyCallerRepository.class)) {
activeManager.add(cm);
}
}
}
activeManager.remove(r.getCallerManagerFactory().getDefaultCallerManager());
Collections.sort(activeManager, new RepositoryManagerComparator());
m_logger.info("List with all active caller managers: " + allManagers.toString());
return activeManager;
}
Aggregations