Examples of findLocalEntry()


Examples of org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalEntry()

  protected BundleEntry findBundleEntry(URL url, AbstractBundle bundle) throws IOException {
    BaseClassLoader classloader = getBundleClassLoader(bundle);
    if (classloader == null)
      throw new FileNotFoundException(url.getPath());
    ClasspathManager cpManager = classloader.getClasspathManager();
    BundleEntry entry = cpManager.findLocalEntry(url.getPath(), url.getPort());
    if (entry == null)
      // this isn't strictly needed but is kept to maintain compatibility
      entry = cpManager.findLocalEntry(url.getPath());
    if (entry == null)
      throw new FileNotFoundException(url.getPath());
View Full Code Here

Examples of org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalEntry()

      throw new FileNotFoundException(url.getPath());
    ClasspathManager cpManager = classloader.getClasspathManager();
    BundleEntry entry = cpManager.findLocalEntry(url.getPath(), url.getPort());
    if (entry == null)
      // this isn't strictly needed but is kept to maintain compatibility
      entry = cpManager.findLocalEntry(url.getPath());
    if (entry == null)
      throw new FileNotFoundException(url.getPath());
    return entry;
  }
View Full Code Here

Examples of org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalEntry()

      throw new FileNotFoundException(url.getPath());
    ClasspathManager cpManager = classloader.getClasspathManager();
    int index = url.getPort();
    BundleEntry entry = null;
    if (index == 0) {
      entry = cpManager.findLocalEntry(url.getPath());
    } else {
      Enumeration entries = cpManager.findLocalEntries(url.getPath());
      if (entries != null)
        for (int i = 0; entries.hasMoreElements() && i <= index; i++)
          entry = (BundleEntry) entries.nextElement();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.