@Test public void sourceInfo() throws Exception { Map<String, Schema> names = sps.getNamedMappings(); Resource resource; Schema beansSchema = names.get("www.springframework.org/schema/beans/spring-beans-2.5.xsd"); resource = assertSourceInfoAndGetResource(beansSchema, SpringPluggableSchemaSourceInfo.class); assertResource("org/springframework/beans/factory/xml/spring-beans-2.5.xsd", resource); SpringSchemasSourceInfo parent = ((SpringPluggableSchemaSourceInfo) beansSchema).getParent(); resource = assertSourceInfoAndGetResource(parent, SpringSchemasSourceInfo.class); assertNull(parent.getParent()); assertTrue(resource.getURL().toExternalForm().endsWith("META-INF/spring.schemas")); String content = StreamUtil.readText(resource.getInputStream(), "UTF-8", true); assertTrue(content.contains("org/springframework/beans/factory/xml/spring-beans-2.5.xsd")); }
public Map<String, Schema> getNamedMappings() { ensureInit(); return nameToSchemaMappings; }
SpringPluggableSchemas implements Schemas, Namespaces { public Map<String, Schema> getNamedMappings() { ensureInit(); return nameToSchemaMappings; } }
SpringPluggableSchemas implements Schemas, Namespaces { public Map<String, Schema> getNamedMappings() { ensureInit(); return nameToSchemaMappings; } SpringPluggableSchemas();  SpringPluggableSchemas(ClassLoader classLoader);  SpringPluggableSchemas(ResourceResolver resourceResolver); private  SpringPluggableSchemas(ClassLoader classLoader, ResourceResolver resourceResolver); }
SpringPluggableSchemas implements Schemas, Namespaces { public Map<String, Schema> getNamedMappings() { ensureInit(); return nameToSchemaMappings; } SpringPluggableSchemas();  SpringPluggableSchemas(ClassLoader classLoader);  SpringPluggableSchemas(ResourceResolver resourceResolver); private  SpringPluggableSchemas(ClassLoader classLoader, ResourceResolver resourceResolver); @Override Set<String> getAvailableNamespaces(); Map<String, Schema> getNamedMappings(); Map<String, String> getUriToNameMappings(); Map<String, String> getToolingParameters(String namespaceURI); @Override String toString(); }
SpringPluggableSchemas implements Schemas, Namespaces { public Map<String, Schema> getNamedMappings() { ensureInit(); return nameToSchemaMappings; } SpringPluggableSchemas();  SpringPluggableSchemas(ClassLoader classLoader);  SpringPluggableSchemas(ResourceResolver resourceResolver); private  SpringPluggableSchemas(ClassLoader classLoader, ResourceResolver resourceResolver); @Override Set<String> getAvailableNamespaces(); Map<String, Schema> getNamedMappings(); Map<String, String> getUriToNameMappings(); Map<String, String> getToolingParameters(String namespaceURI); @Override String toString();  }