for (Iterator ejbBundles = getEjbBundleDescriptors().iterator();ejbBundles.hasNext();) {
EjbBundleDescriptor anEjbBundle = (EjbBundleDescriptor) ejbBundles.next();
anEjbBundle.visit(ejbBundleVisitor);
}
}
WebBundleVisitor webVisitor = aVisitor.getWebBundleVisitor();
if (webVisitor != null) {
for (Iterator webBundles = getWebBundleDescriptors().iterator();webBundles.hasNext();) {
WebBundleDescriptor aWebBundle = (WebBundleDescriptor) webBundles.next();
// This might be null in the case of an appclient
// processing a client stubs .jar whose original .ear contained
// a .war. This will be fixed correctly in the deployment
// stage but until then adding a non-null check will prevent
// the validation step from bombing.
if( aWebBundle != null ) {
aWebBundle.visit(webVisitor);
}
}
}
WebBundleVisitor extVisitor = aVisitor.getWebBundleVisitor();
if (webVisitor != null) {
for (Iterator extBundles = getExtnBundleDescriptors().iterator();extBundles.hasNext();) {
BundleDescriptor aExtBundle = (BundleDescriptor) extBundles.next();
// This might be null in the case of an appclient
// processing a client stubs .jar whose original .ear contained