classFinder = AbstractWebModuleBuilder.createWebAppClassFinder(webApp, classLoader);
} catch (DeploymentException e2) {
return;
}
}
AnnotatedApp annotatedApp = module.getAnnotatedApp();
parseAnnotations(annotatedApp, classFinder);
//DDBeanRoot ddBeanRoot = webDeployable.getDDBeanRoot();
//DDBean ddBean = ddBeanRoot.getChildBean("web-app")[0];
EjbRefType[] ejbRefs = annotatedApp.getEjbRefArray();
for (int i = 0; i < ejbRefs.length; i++) {
String refName = ejbRefs[i].getEjbRefName().getStringValue();
data.getEjbRefs().add(new ReferenceData(refName));
}
/*DDBean[] ddBeans = ddBean.getChildBean("ejb-ref");
for (int i = 0; ddBeans != null && i < ddBeans.length; i++) {
String refName = ddBeans[i].getChildBean("ejb-ref-name")[0].getText();
data.getEjbRefs().add(new ReferenceData(refName));
}*/
EjbLocalRefType[] ejbLocalRefs = annotatedApp.getEjbLocalRefArray();
for (int i = 0; i < ejbLocalRefs.length; i++) {
String refName = ejbLocalRefs[i].getEjbRefName().getStringValue();
data.getEjbLocalRefs().add(new ReferenceData(refName));
}
/*ddBeans = ddBean.getChildBean("ejb-local-ref");
for (int i = 0; ddBeans != null && i < ddBeans.length; i++) {
String refName = ddBeans[i].getChildBean("ejb-ref-name")[0].getText();
data.getEjbLocalRefs().add(new ReferenceData(refName));
}*/
ResourceRefType[] resourceRefs = annotatedApp.getResourceRefArray();
for(int i = 0; i < resourceRefs.length; i++) {
String refName = resourceRefs[i].getResRefName().getStringValue();
String refType = resourceRefs[i].getResType().getStringValue();
if ("javax.sql.DataSource".equalsIgnoreCase(refType)) {
data.getJdbcPoolRefs().add(new ReferenceData(refName));
} else if ("javax.jms.ConnectionFactory".equalsIgnoreCase(refType)
|| "javax.jms.QueueConnectionFactory".equalsIgnoreCase(refType)
|| "javax.jms.TopicConnectionFactory".equalsIgnoreCase(refType)) {
data.getJmsConnectionFactoryRefs().add(new ReferenceData(refName));
} else if ("javax.mail.Session".equalsIgnoreCase(refType)) {
data.getJavaMailSessionRefs().add(new ReferenceData(refName));
}
}
/*ddBeans = ddBean.getChildBean("resource-ref");
for (int i = 0; ddBeans != null && i < ddBeans.length; i++) {
String refName = ddBeans[i].getChildBean("res-ref-name")[0].getText();
String refType = ddBeans[i].getChildBean("res-type")[0].getText();
if ("javax.sql.DataSource".equalsIgnoreCase(refType)) {
data.getJdbcPoolRefs().add(new ReferenceData(refName));
} else if ("javax.jms.ConnectionFactory".equalsIgnoreCase(refType)
|| "javax.jms.QueueConnectionFactory".equalsIgnoreCase(refType)
|| "javax.jms.TopicConnectionFactory".equalsIgnoreCase(refType)) {
data.getJmsConnectionFactoryRefs().add(new ReferenceData(refName));
}
}*/
ServiceRefType[] serviceRefs = annotatedApp.getServiceRefArray();
for(int i = 0; i < serviceRefs.length; i++) {
String refName = serviceRefs[i].getServiceRefName().getStringValue();
GerServiceRefType serviceRef = GerServiceRefType.Factory.newInstance();
serviceRef.setServiceRefName(refName);
data.getWebServiceRefs().add(serviceRef);
}
ResourceEnvRefType[] resourceEnvRefs = annotatedApp.getResourceEnvRefArray();
for(int i = 0; i < resourceEnvRefs.length; i++) {
String refName = resourceEnvRefs[i].getResourceEnvRefName().getStringValue();
ReferenceData refData = new ReferenceData(refName);
refData.setRefLink(refName);
data.getJmsDestinationRefs().add(refData);