@Test public void classPathResourceTest0() throws IOException { final String path = "/messages/messages.properties"; final String noStartPath = path.substring(1); final ClassPathResource resource0 = new ClassPathResource(path); asserts(resource0, noStartPath); final ClassPathResource resource1 = new ClassPathResource(noStartPath, this.getClass().getClassLoader()); asserts(resource1, noStartPath); final ClassPathResource resource2 = new ClassPathResource(path, this.getClass()); asserts(resource2, path); }
public final ClassLoader getClassLoader() { return (this.classLoader != null ? this.classLoader : this.clazz.getClassLoader()); }
ClassPathResource extends AbstractResource { public final ClassLoader getClassLoader() { return (this.classLoader != null ? this.classLoader : this.clazz.getClassLoader()); } }
ClassPathResource extends AbstractResource { public final ClassLoader getClassLoader() { return (this.classLoader != null ? this.classLoader : this.clazz.getClassLoader()); } ClassPathResource(String path);  ClassPathResource(String path, ClassLoader classLoader);  ClassPathResource(String path, Class<?> clazz); protected  ClassPathResource(String path, ClassLoader classLoader, Class<?> clazz); }
ClassPathResource extends AbstractResource { public final ClassLoader getClassLoader() { return (this.classLoader != null ? this.classLoader : this.clazz.getClassLoader()); } ClassPathResource(String path);  ClassPathResource(String path, ClassLoader classLoader);  ClassPathResource(String path, Class<?> clazz); protected  ClassPathResource(String path, ClassLoader classLoader, Class<?> clazz); final String getPath(); final ClassLoader getClassLoader(); InputStream getInputStream(); URL getURL(); File getFile(); Resource createRelative(String relativePath); String getFilename(); String getDescription(); boolean equals(Object obj); int hashCode(); }
ClassPathResource extends AbstractResource { public final ClassLoader getClassLoader() { return (this.classLoader != null ? this.classLoader : this.clazz.getClassLoader()); } ClassPathResource(String path);  ClassPathResource(String path, ClassLoader classLoader);  ClassPathResource(String path, Class<?> clazz); protected  ClassPathResource(String path, ClassLoader classLoader, Class<?> clazz); final String getPath(); final ClassLoader getClassLoader(); InputStream getInputStream(); URL getURL(); File getFile(); Resource createRelative(String relativePath); String getFilename(); String getDescription(); boolean equals(Object obj); int hashCode();  }