Open
Description
public static List<Class> getAllResources(Application application,
List<Class> resources) {
List allResources = new ArrayList();
Iterator i$;
if (application != null) {
if (application.getClasses() != null) {
allResources.addAll(application.getClasses()); // here use class , not interface
}
if (application.getSingletons() != null) {
for (i$ = application.getSingletons().iterator(); i$.hasNext();) {
Object singleton = i$.next();
if (singleton != null) {
allResources.add(singleton.getClass());
}
}
}
}
}