in cdi-extender/src/main/java/org/apache/aries/cdi/container/internal/loader/BundleClassLoader.java [126:148]
protected Class<?> findClass(String name) throws ClassNotFoundException {
Object classLoadingLock = getClassLoadingLock(name);
synchronized (classLoadingLock) {
for (Bundle bundle : getBundles()) {
if ((bundle.getState() & Bundle.UNINSTALLED) == Bundle.UNINSTALLED) {
continue;
}
try {
return bundle.loadClass(name);
}
catch (ClassNotFoundException cnfe) {
continue;
}
}
if (classPredicate != null && classPredicate.test(name)) {
return classFunction.apply(name);
}
throw new ClassNotFoundException(name);
}
}