public URL findResource()

in atomos/src/main/java/org/apache/felix/atomos/impl/modules/ModuleConnectLoader.java [164:186]


    public URL findResource(String name)
    {
        URL retVal = null;
        try
        {
            retVal = findResource(this.module.get().getName(), name);
        }
        catch (IOException e)
        {
            //ignore
        }
        String pkg = packageName(name);
        if (this.module.get().getDescriptor().packages().contains(pkg))
        {
            // non-class resources should be returned by this method if the package is open unconditionally
            if (!name.endsWith(".class") && !name.endsWith("/")
                && !this.module.get().isOpen(pkg))
            {
                retVal = null;
            }
        }
        return retVal;
    }