MCPcopy Create free account
hub / github.com/directwebremoting/dwr / getClasses

Method getClasses

etc/future/scanner/ClasspathScanner.java:89–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87 }
88
89 public Set<String> getClasses() throws IOException {
90 Set<String> classes = new HashSet<String>();
91 Enumeration<URL> resources = getClassLoader().getResources(pkg + "/");
92 if (resources != null) {
93 while (resources.hasMoreElements()) {
94 String path = sanitizeURL(resources.nextElement().getFile());
95 if ((path != null) && (path.trim().length() > 0))
96 classes.addAll(
97 isJARPath(path) ? getClassesFromJAR(path) : getClassesFromDirectory(path)
98 );
99 }
100 }
101 return classes;
102 }
103
104}

Callers 2

contextInitializedMethod · 0.95

Calls 6

getClassLoaderMethod · 0.95
sanitizeURLMethod · 0.95
isJARPathMethod · 0.95
getClassesFromJARMethod · 0.95
addAllMethod · 0.80

Tested by

no test coverage detected