dcb.addAdminObjectInstance(old.getAdminobjectInstanceArray(oldCount+j));
}
}
continue;
}
DDBean target = null;
for (int j = 0; j < ddBeans.size(); j++) {
DDBean ddBean = (DDBean) ddBeans.get(j);
String ddClass = ddBean.getText("adminobject-class")[0];
String ddIface = ddBean.getText("adminobject-interface")[0];
if(ddClass.equals(aoClass) && ddIface.equals(aoIface)) {
target = ddBean;
ddBeans.remove(j);
break;
}
}
if(target == null) {
System.out.println("Geronimo connector deployment plan has admin object with interface '"+aoIface+"' and class '"+aoClass+"' but the ra.xml does not have a matching adminobject declared. Deleting this adminobject from the Geronimo plan.");
continue;
}
dcb = new AdminObjectDCB(target, admin);
dcbs.put("class "+aoClass+" iface "+aoIface, dcb);
}
}
// There are some admin object types in ra.xml with no matching instances; create DConfigBeans for those
for (int i = 0; i < ddBeans.size(); i++) {
DDBean ddBean = (DDBean) ddBeans.get(i);
String ddClass = ddBean.getText("adminobject-class")[0];
String ddIface = ddBean.getText("adminobject-interface")[0];
GerAdminobjectType admin = connector.addNewAdminobject();
dcbs.put("class "+ddClass+" iface "+ddIface, new AdminObjectDCB(ddBean, admin));
}
List adminResults = new ArrayList();
for (Iterator it = dcbs.keySet().iterator(); it.hasNext();) {