My favorites | Sign in
Google
                
Code license: Apache License 2.0
Labels: java, google
Show all Featured downloads:
classpath-explorer-1.0.jar
Feeds:
People details
Project owners:
  Misko.Hevery
Project committers:
aeagle22206

Library which allows discovering classes at runtime. In Java one can use

ClassLoader.getResourceAsInputStream(resource)

to load the data from the classpath provided that you know the name of the resource. This library allows you to discover what Java packages and classes are available at runtime.

ClassPathFacotry factory = new ClassPathFactory();
ClassPath classPath = factory.createFromJVM();
foreach (String packageName : classPath.listResources("")) {
  System.out.println(packageName);
}

http://misko.hevery.com/about