Return to Snippet

Revision: 26606
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();
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 in order to find a class in class path.

Initial Title
Finding classes

Initial Tags
class, java

Initial Language