IProjectClassLoaderSupport classLoaderSupport = JdtUtils.getProjectClassLoaderSupport(project.getProject(),
null);
autowireDependencyProvider.setProjectClassLoaderSupport(classLoaderSupport);
classLoaderSupport.executeCallback(new IProjectClassLoaderAwareCallback() {
public void doWithActiveProjectClassLoader() throws Throwable {
autowireDependencyProvider.preloadClasses();
beanNamesWrapper[0] = autowireDependencyProvider.getBeansForType(typeName);
}
});
}
catch (Throwable e) {