public void accept (BundleDescriptor descriptor) { if (descriptor instanceof ApplicationClientDescriptor) { ApplicationClientDescriptor appClientDesc = (ApplicationClientDescriptor)descriptor; accept(appClientDesc); super.accept(descriptor); } }
@Override public void accept(BundleDescriptor descriptor) { if (descriptor instanceof EjbBundleDescriptorImpl) { EjbBundleDescriptorImpl ejbBundle = (EjbBundleDescriptorImpl) descriptor; accept(ejbBundle); for (EjbDescriptor anEjb : ejbBundle.getEjbs()) { anEjb.visit(getSubDescriptorVisitor(anEjb)); } if (ejbBundle.hasRelationships()) { for (RelationshipDescriptor rd : ejbBundle.getRelationships()) { accept(rd); } } for (WebService ws : ejbBundle.getWebServices().getWebServices()) { accept(ws); } } super.accept(descriptor); }
@Override public void accept (BundleDescriptor descriptor) { if (descriptor instanceof Application) { Application application = (Application)descriptor; accept(application); for (BundleDescriptor ebd : application.getBundleDescriptorsOfType(DOLUtils.ejbType())) { ebd.visit(getSubDescriptorVisitor(ebd)); } for (BundleDescriptor wbd : application.getBundleDescriptorsOfType(DOLUtils.warType())) { // 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 (wbd != null) { wbd.visit(getSubDescriptorVisitor(wbd)); } } for (BundleDescriptor cd : application.getBundleDescriptorsOfType(DOLUtils.rarType())) { cd.visit(getSubDescriptorVisitor(cd)); } for (BundleDescriptor acd : application.getBundleDescriptorsOfType(DOLUtils.carType())) { acd.visit(getSubDescriptorVisitor(acd)); } super.accept(descriptor); } else { super.accept(descriptor); } }