SimpleClassScanner { public Set<Class<?>> scan(ClassLoader classLoader, String packageName) throws IllegalArgumentException, IllegalStateException { return scan(classLoader, packageName, false); } protected  SimpleClassScanner(); Set<Class<?>> scan(ClassLoader classLoader, String packageName); Set<Class<?>> scan(ClassLoader classLoader, String packageName, boolean recursive); Set<Class<?>> scan(ClassLoader classLoader, String packageName, final boolean recursive, boolean requiredLoad); final static SimpleClassScanner INSTANCE; }
@Test public void testScan() { Set<Class<?>> classesSet = simpleClassScanner.scan(classLoader, "org.confucius.commons.lang"); Assert.assertFalse(classesSet.isEmpty()); echo(classesSet); classesSet = simpleClassScanner.scan(classLoader, "org.confucius.commons.lang.io.scanner"); Assert.assertFalse(classesSet.isEmpty()); echo(classesSet); }