Package org.jnode.plugin

Examples of org.jnode.plugin.PluginRegistry.loadPlugin()


                    System.getProperty("os.version") : plugin.getPluginVersion();
            try {
                PluginManager mgr = InitialNaming.lookup(PluginManager.NAME);
                PluginRegistry reg = mgr.getRegistry();
                if (reg.getPluginDescriptor(id) == null) {
                    reg.loadPlugin(mgr.getLoaderManager(), new PluginReference(id, new Version(ver)), true);
                }
            } catch (Exception ex) {
                System.out.println(ex.getMessage());
                throw new TestRunnerException(
                        "Cannot load plugin '" + plugin.getPluginId() + "/" + ver + "'", ex);
View Full Code Here


    private void reloadPlugin(PluginReference pluginReference) throws PluginException {
        final PluginRegistry reg = mgr.getRegistry();
        final List<PluginReference> refs = reg.unloadPlugin(pluginReference.getId());
        for (PluginReference ref : refs) {
            if (reg.getPluginDescriptor(ref.getId()) == null) {
                reg.loadPlugin(mgr.getLoaderManager(), ref, true); //resolve=true
            }
        }
        if (reg.getPluginDescriptor(pluginReference.getId()) == null) {
            reg.loadPlugin(mgr.getLoaderManager(), pluginReference, true); //resolve=true
        }
View Full Code Here

            if (reg.getPluginDescriptor(ref.getId()) == null) {
                reg.loadPlugin(mgr.getLoaderManager(), ref, true); //resolve=true
            }
        }
        if (reg.getPluginDescriptor(pluginReference.getId()) == null) {
            reg.loadPlugin(mgr.getLoaderManager(), pluginReference, true); //resolve=true
        }
        out.format(fmt_reload, pluginReference.getId(), pluginReference.getVersion());
    }

    private void unloadPlugin(String id) throws PluginException {
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.