Package org.springframework.ide.eclipse.core.type.asm

Examples of org.springframework.ide.eclipse.core.type.asm.CachingClassReaderFactory


  }

  @Before
  public void createProject() throws Exception {
    project = StsTestUtil.createPredefinedProject("jdt-annotation-tests", "org.springframework.ide.eclipse.beans.core.tests");
    classReaderFactory = new CachingClassReaderFactory(JdtUtils.getClassLoader(project, null));
    classLoader = JdtUtils.getClassLoader(project, null);
  }
View Full Code Here


  /**
   * {@inheritDoc}
   */
  public synchronized ClassReaderFactory getClassReaderFactory() {
    if (this.classReaderFactory == null) {
      this.classReaderFactory = new CachingClassReaderFactory(JdtUtils.getClassLoader(getRootElement()
          .getElementResource().getProject(), null));
    }
    return this.classReaderFactory;
  }
View Full Code Here

    super.error(new SpringProject(SpringCore.getModel(), project), problemId, message, attributes);
  }

  public ClassReaderFactory getClassReaderFactory() {
    if (this.classReaderFactory == null) {
      this.classReaderFactory = new CachingClassReaderFactory(JdtUtils.getClassLoader(project,
          BeansCorePlugin.getClassLoader()));
    }
    return this.classReaderFactory;
  }
View Full Code Here

  private final CachingClassReaderFactory classReaderFactory;

  public JdtMetadataReaderFactory(IJavaProject project, ClassLoader classloader) {
    this.project = project;
    this.classloader = classloader;
    this.classReaderFactory = new CachingClassReaderFactory(this.classloader);
  }
View Full Code Here

   * This method checks for an already created {@link ClassReaderFactory} in the internal cache
   * {@link #classReaderFactoryCache} before creating a new instance.
   */
  private ClassReaderFactory getClassReaderFactory(IProject project) {
    if (!classReaderFactoryCache.containsKey(project)) {
      classReaderFactoryCache.put(project, new CachingClassReaderFactory(JdtUtils.getClassLoader(project,
          null)));
    }
    return classReaderFactoryCache.get(project);
  }
View Full Code Here

  }

  private ClassReader getClassReader(String className) {
    // lazy initialize classReaderFactory to make sure it uses the correct classLoader
    if (classReaderFactory == null) {
      classReaderFactory = new CachingClassReaderFactory();
    }
    try {
      return classReaderFactory.getClassReader(className);
    }
    catch (IOException e) {
View Full Code Here

  }

  @Before
  public void createProject() throws Exception {
    project = StsTestUtil.createPredefinedProject("jdt-annotation-tests", Activator.PLUGIN_ID);
    classReaderFactory = new CachingClassReaderFactory(JdtUtils.getClassLoader(project, null));
    classLoader = JdtUtils.getClassLoader(project, null);
  }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.core.type.asm.CachingClassReaderFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.