Revision: 26606
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 4, 2010 04:02 by narkisr
Initial Code
File moduleFile = new File(Catalog.class.getProtectionDomain().getCodeSource().getLocation().toURI()); final ClassFinder finder = new ClassFinder(); finder.clear(); assertTrue(finder.add(moduleFile)); final ClassFilter filter = new AndClassFilter(new NotClassFilter(new InterfaceOnlyClassFilter()), new NotClassFilter(new AbstractClassFilter()), new SubclassClassFilter(UpdateTask.class)); Collection<ClassInfo> foundClasses = new ArrayList<ClassInfo>(); finder.findClasses(foundClasses, filter);
Initial URL
Initial Description
Using http://www.clapper.org/software/java/util/javadocs/util/api/org/clapper/util/classutil/ClassFinder.html in order to find a class in class path.
Initial Title
Finding classes
Initial Tags
class, java
Initial Language
Java