Package org.jnode.plugin.model

Examples of org.jnode.plugin.model.PluginJar


        // Load all resources of all plugins
        for (PluginDescriptor descr : piRegistry) {
            if (!descr.isSystemPlugin()) {
                throw new BuildException("Non system plugin found " + descr.getId());
            }
            final PluginJar piJar = ((PluginDescriptorModel) descr).getJarFile();
            log("Plugin: " + descr.getId() + piJar.resourceNames().size());
            for (String name : piJar.resourceNames()) {
                final ByteBuffer buf = piJar.getResourceAsBuffer(name);
                final byte[] data = new byte[buf.limit()];
                buf.get(data);
                resources.put(name.intern(), data);
//                log("  " + name);
            }
            piJar.clearResources();
        }

        blockedObjects.add(resources);
        clsMgr.setSystemRtJar(resources);
View Full Code Here


        // Load all resources of all plugins
        for (PluginDescriptor descr : piRegistry) {
            if (!descr.isSystemPlugin()) {
                throw new BuildException("Non system plugin found " + descr.getId());
            }
            final PluginJar piJar = ((PluginDescriptorModel) descr).getJarFile();
//            log("Plugin: " + descr.getId() + piJar.resourceNames().size());
            for (String name : piJar.resourceNames()) {
                final ByteBuffer buf = piJar.getResourceAsBuffer(name);
                final byte[] data = new byte[buf.limit()];
                buf.get(data);
                resources.put(name.intern(), data);
//                log("  " + name);
            }
            piJar.clearResources();
        }
        return resources;
    }
View Full Code Here

TOP

Related Classes of org.jnode.plugin.model.PluginJar

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.