/** * @throws ClassNotFoundException */ public Class<?> findLocalClass(String classname) throws ClassNotFoundException { return SystemBundleLoader.this.findLocalClass(classname); }
/** * The ClassLoader that loads OSGi framework classes is used to find the resource. * This method never gets called because there is no ModuleClassLoader for the framework. */ public URL findResource(String name) { return findLocalResource(name); }
/** * The ClassLoader that loads OSGi framework classes is used to find the resource. * This method never gets called because there is no ModuleClassLoader for the framework. * @throws IOException */ public Enumeration<URL> findResources(String name) throws IOException { return findLocalResources(name); }
@Override public ModuleLoader createModuleLoader(ModuleWiring wiring) { if (wiring.getBundle().getBundleId() == 0) { ClassLoader cl = EquinoxContainer.class.getClassLoader(); cl = cl == null ? BOOT_CLASSLOADER : cl; return new SystemBundleLoader(wiring, container, cl); } if ((wiring.getRevision().getTypes() & BundleRevision.TYPE_FRAGMENT) != 0) { return new FragmentLoader(); } return new BundleLoader(wiring, container, moduleClassLoaderParent); }
@Override public void loadFragments(Collection<ModuleRevision> fragments) { Module systemModule = getWiring().getRevision().getRevisions().getModule(); for (ModuleRevision fragment : fragments) { try { this.getGeneration().getBundleInfo().getStorage().getExtensionInstaller().addExtensionContent(fragment, getWiring().getRevision().getRevisions().getModule()); } catch (BundleException e) { systemModule.getContainer().getAdaptor().publishContainerEvent(ContainerEvent.ERROR, systemModule, e); } } } }
@Override protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException { return SystemBundleLoader.this.findClass(name); }
Bundle systemBundle = container.getStorage().getModuleContainer().getModule(0).getBundle(); SystemBundleLoader systemLoader = (SystemBundleLoader) getBundleLoader(systemBundle); if (systemLoader.isExportedPackage(pkgName)) { return true; // in this case we have a common source from the EE
@Override public ModuleLoader createModuleLoader(ModuleWiring wiring) { if (wiring.getBundle().getBundleId() == 0) { ClassLoader cl = EquinoxContainer.class.getClassLoader(); cl = cl == null ? BOOT_CLASSLOADER : cl; return new SystemBundleLoader(wiring, container, cl); } if ((wiring.getRevision().getTypes() & BundleRevision.TYPE_FRAGMENT) != 0) { return new FragmentLoader(); } return new BundleLoader(wiring, container, moduleClassLoaderParent); }
@Override public void loadFragments(Collection<ModuleRevision> fragments) { Module systemModule = getWiring().getRevision().getRevisions().getModule(); for (ModuleRevision fragment : fragments) { try { this.getGeneration().getBundleInfo().getStorage().getExtensionInstaller().addExtensionContent(fragment, getWiring().getRevision().getRevisions().getModule()); } catch (BundleException e) { systemModule.getContainer().getAdaptor().publishContainerEvent(ContainerEvent.ERROR, systemModule, e); } } getClasspathManager().loadFragments(fragments); } }
@Override protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException { return SystemBundleLoader.this.findClass(name); }
Bundle systemBundle = container.getStorage().getModuleContainer().getModule(0).getBundle(); SystemBundleLoader systemLoader = (SystemBundleLoader) getBundleLoader(systemBundle); if (systemLoader.isExportedPackage(pkgName)) { return true; // in this case we have a common source from the EE
/** * @throws ClassNotFoundException */ public Class<?> findLocalClass(String classname) throws ClassNotFoundException { return SystemBundleLoader.this.findLocalClass(classname); }
/** * The ClassLoader that loads OSGi framework classes is used to find the resource. * This method never gets called because there is no ModuleClassLoader for the framework. * @throws IOException */ public Enumeration<URL> findResources(String name) throws IOException { return findLocalResources(name); }
/** * The ClassLoader that loads OSGi framework classes is used to find the resource. * This method never gets called because there is no ModuleClassLoader for the framework. */ public URL findResource(String name) { return findLocalResource(name); }
@Override public ModuleLoader createModuleLoader(ModuleWiring wiring) { if (wiring.getBundle().getBundleId() == 0) { ClassLoader cl = EquinoxContainer.class.getClassLoader(); cl = cl == null ? BOOT_CLASSLOADER : cl; return new SystemBundleLoader(wiring, container, cl); } if ((wiring.getRevision().getTypes() & BundleRevision.TYPE_FRAGMENT) != 0) { return new FragmentLoader(); } return new BundleLoader(wiring, container, moduleClassLoaderParent); }
@Override public void loadFragments(Collection<ModuleRevision> fragments) { Module systemModule = getWiring().getRevision().getRevisions().getModule(); try { this.getGeneration().getBundleInfo().getStorage().getExtensionInstaller().addExtensionContent(fragments, systemModule); } catch (BundleException e) { systemModule.getContainer().getAdaptor().publishContainerEvent(ContainerEvent.ERROR, systemModule, e); } getClasspathManager().loadFragments(fragments); } }
@Override protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException { return SystemBundleLoader.this.findClass(name); }
Bundle systemBundle = container.getStorage().getModuleContainer().getModule(0).getBundle(); SystemBundleLoader systemLoader = (SystemBundleLoader) getBundleLoader(systemBundle); if (systemLoader.isExportedPackage(pkgName)) { return true; // in this case we have a common source from the EE
/** * The ClassLoader that loads OSGi framework classes is used to find the class. * This method never gets called because there is no BundleClassLoader for the framework. */ public Class<?> findClass(String name) throws ClassNotFoundException { Class<?> result = findLocalClass(name); if (result == null) throw new ClassNotFoundException(name); return result; }
/** * The ClassLoader that loads OSGi framework classes is used to find the resource. * This method never gets called because there is no BundleClassLoader for the framework. * @throws IOException */ public Enumeration<URL> findResources(String name) throws IOException { return findLocalResources(name); }