/** * Validate the resource adapter names of @CFD, @AODD. */ private void validateRAName(AppResource resource) { validateRAName(resource.getJndiName(), resource.getType()); }
/** * Start of validation logic. */ private void validateResources(AppResources appResources) { for (AppResource resource : appResources.myResources) { if (!resource.validate) continue; if (resource.getType().equals("CFD") || resource.getType().equals("AODD")) validateRAName(resource); else validateJNDIRefs(resource, appResources.myNamespace); } // Validate the ra-names of app scoped resources // RA-name and the type of this resource are stored List<Map.Entry<String, String>> raNames = (List<Map.Entry<String, String>>) dc.getTransientAppMetadata().get(ResourceConstants.APP_SCOPED_RESOURCES_RA_NAMES); if (raNames == null) return; for (Map.Entry<String, String> entry: raNames) { validateRAName(entry.getKey(), entry.getValue()); } }