Set<Class> elements = new HashSet<Class>();
if (getClassLoader()==null) {
AnnotationUtils.getLogger().severe("Class loader null");
return elements;
}
for (JarEntry je : entries) {
String fileName = je.getName();
// convert to a class name...
String className = fileName.replace(File.separatorChar, '.");
className = className.substring(0, className.length()-6);
try {
elements.add(classLoader.loadClass(className));
} catch(ClassNotFoundException cnfe) {
cnfe.printStackTrace();
}
}
return elements;