WebModule wMod = (WebModule) bean;
if ((wMod != null) &&
(wMod.getObjectType().equals(IAdminConstants.USER))) {
String l = lhelper.getSunWebXmlPathForModule(wMod.getName());
WebModuleReader wr = new WebModuleReaderImpl(_configCtx,
refs[i], bean, createSunWebApp(l));
list.add(wr);
}
} else if (bean instanceof ExtensionModule) {
ExtensionModule exMod = (ExtensionModule) bean;
if (exMod != null &&
exMod.getObjectType().equals(IAdminConstants.USER) &&
exMod.getModuleType().equals(EX_MOD_TYPE) &&
Boolean.parseBoolean(exMod.getElementPropertyByName(IS_CONVERGED).getValue())) {
WebModuleReader wr = new ExtensionModuleReaderImpl(_configCtx,
refs[i], bean);
list.add(wr);
}
} else if (bean instanceof J2eeApplication) {
J2eeApplication app = (J2eeApplication) bean;
if ((app != null) &&
(app.getObjectType().equals(IAdminConstants.USER))) {
// get all the web modules inside application
List l = lhelper.getSunWebXmlPathForApplication(app.getName());
int size = l.size();
for (int j = 0; j < size; j++) {
WebModuleReader wr = new WebModuleReaderImpl(_configCtx,
refs[i], app,
createSunWebApp((String) l.get(j)));
list.add(wr);
}
List l1 = lhelper.getSunEjbJarXmlPathForApplication(app.getName());
int size1 = l1.size();
for (int j = 0; j < size1; j++) {
List<WebserviceEndpoint> wsepList = createWebserviceEndpoint((String) l1.get(
j));
for (WebserviceEndpoint wsep : wsepList) {
WebModuleReader wr = new EjbJarModuleReaderImpl(_configCtx,
refs[i], wsep);
list.add(wr);
}
}
}