/** * Finds a resource local to this bundle. Only the classloader for this bundle is searched. * @param name The name of the resource to find. * @return The URL to the resource or null if the resource is not found. */ public URL findLocalResource(final String name) { return getModuleClassLoader().findLocalResource(name); }
@Override public Collection<String> listResources(String path, String filePattern) { ModuleClassLoader mcl = supplier.getModuleClassLoader(); return mcl.listLocalResources(path, filePattern, 0); } }
/** * Finds a resource local to this bundle. Only the classloader for this bundle is searched. * @param name The name of the resource to find. * @return The URL to the resource or null if the resource is not found. */ public URL findLocalResource(final String name) { return getModuleClassLoader().findLocalResource(name); }
/** * Returns an Enumeration of URLs representing all the resources with * the given name. Only the classloader for this bundle is searched. * * @param name the resource name * @return an Enumeration of URLs for the resources */ public Enumeration<URL> findLocalResources(String name) { return getModuleClassLoader().findLocalResources(name); }
/** * This method gets a resource from the bundle. The resource is searched * for in the same manner as it would if it was being loaded from a bundle * (i.e. all hosts, fragments, import, required bundles and * local resources are searched). * * @param name the name of the desired resource. * @return the resulting resource URL or null if it does not exist. */ final URL getResource(String name) { return getModuleClassLoader().getResource(name); }
/** * This method gets a resource from the bundle. The resource is searched * for in the same manner as it would if it was being loaded from a bundle * (i.e. all hosts, fragments, import, required bundles and * local resources are searched). * * @param name the name of the desired resource. * @return the resulting resource URL or null if it does not exist. */ final URL getResource(String name) { return getModuleClassLoader().getResource(name); }
/** * Finds a resource local to this bundle. Only the classloader for this bundle is searched. * @param name The name of the resource to find. * @return The URL to the resource or null if the resource is not found. */ public URL findLocalResource(final String name) { return getModuleClassLoader().findLocalResource(name); }
/** * Returns an Enumeration of URLs representing all the resources with * the given name. Only the classloader for this bundle is searched. * * @param name the resource name * @return an Enumeration of URLs for the resources */ public Enumeration<URL> findLocalResources(String name) { return getModuleClassLoader().findLocalResources(name); }
/** * Returns an Enumeration of URLs representing all the resources with * the given name. Only the classloader for this bundle is searched. * * @param name the resource name * @return an Enumeration of URLs for the resources */ public Enumeration<URL> findLocalResources(String name) { return getModuleClassLoader().findLocalResources(name); }
/** * This method gets a resource from the bundle. The resource is searched * for in the same manner as it would if it was being loaded from a bundle * (i.e. all hosts, fragments, import, required bundles and * local resources are searched). * * @param name the name of the desired resource. * @return the resulting resource URL or null if it does not exist. */ final URL getResource(String name) { return getModuleClassLoader().getResource(name); }
@Override public Collection<String> listResources(String path, String filePattern) { ModuleClassLoader mcl = supplier.getModuleClassLoader(); return mcl.listLocalResources(path, filePattern, 0); } }
/** * Finds a resource local to this bundle. Only the classloader for this bundle is searched. * @param name The name of the resource to find. * @return The URL to the resource or null if the resource is not found. */ public URL findLocalResource(final String name) { return getModuleClassLoader().findLocalResource(name); }
/** * Finds a resource local to this bundle. Only the classloader for this bundle is searched. * @param name The name of the resource to find. * @return The URL to the resource or null if the resource is not found. */ public URL findLocalResource(final String name) { return getModuleClassLoader().findLocalResource(name); }
@Override public Collection<String> listResources(String path, String filePattern) { ModuleClassLoader mcl = supplier.getModuleClassLoader(); return mcl.listLocalResources(path, filePattern, 0); } }
/** * This method gets a resource from the bundle. The resource is searched * for in the same manner as it would if it was being loaded from a bundle * (i.e. all hosts, fragments, import, required bundles and * local resources are searched). * * @param name the name of the desired resource. * @return the resulting resource URL or null if it does not exist. */ final URL getResource(String name) { return getModuleClassLoader().getResource(name); }
@Override public ModuleClassLoader run() { ModuleWiring wiring = getModule().getCurrentRevision().getWiring(); if (wiring != null) { ModuleLoader moduleLoader = wiring.getModuleLoader(); if (moduleLoader instanceof BundleLoader) { return ((BundleLoader) moduleLoader).getModuleClassLoader(); } } return null; } });
@Override public ModuleClassLoader run() { ModuleWiring wiring = getModule().getCurrentRevision().getWiring(); if (wiring != null) { ModuleLoader moduleLoader = wiring.getModuleLoader(); if (moduleLoader instanceof BundleLoader) { return ((BundleLoader) moduleLoader).getModuleClassLoader(); } } return null; } });
@Override public ModuleClassLoader run() { ModuleWiring wiring = getModule().getCurrentRevision().getWiring(); if (wiring != null) { ModuleLoader moduleLoader = wiring.getModuleLoader(); if (moduleLoader instanceof BundleLoader) { return ((BundleLoader) moduleLoader).getModuleClassLoader(); } } return null; } });
@Override public ModuleClassLoader run() { ModuleWiring wiring = getModule().getCurrentRevision().getWiring(); if (wiring != null) { ModuleLoader moduleLoader = wiring.getModuleLoader(); if (moduleLoader instanceof BundleLoader) { return ((BundleLoader) moduleLoader).getModuleClassLoader(); } } return null; } });
@Override public ModuleClassLoader run() { ModuleWiring wiring = getModule().getCurrentRevision().getWiring(); if (wiring != null) { ModuleLoader moduleLoader = wiring.getModuleLoader(); if (moduleLoader instanceof BundleLoader) { return ((BundleLoader) moduleLoader).getModuleClassLoader(); } } return null; } });