Package org.jnode.plugin

Examples of org.jnode.plugin.PluginReference


                    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


        final String pluginIdentifier = getAttribute(e, "plugin", true);
        String version = getAttribute(e, "version", false);
        if (version == null) {
            version = plugin.getVersion().toString();
        }
        reference = new PluginReference(pluginIdentifier, new Version(version));
    }
View Full Code Here

            throw new IllegalArgumentException("pluginId is null");
        }
        if (pluginVersion == null) {
            throw new IllegalArgumentException("pluginVersion is null");
        }
        reference = new PluginReference(pluginIdentifier, pluginVersion);
    }
View Full Code Here

        final Extension[] exts = descr.getExtensions();
        final int extLength = exts.length;
        for (int i = 0; i < extLength; i++) {
            final Extension ext = exts[i];
            final String id = ext.getExtensionPointPluginId();
            loadDependency(loader, new PluginReference(id, descr.getVersion()), descriptors);
        }
    }
View Full Code Here

    }
   
    public PluginReference getPluginReference() {
        if (reference == null) {
            // lazy creation
            reference = new PluginReference(id, version);
        }
        return reference;
    }
View Full Code Here

    private void doRun()
        throws NameNotFoundException, SyntaxMultiplicityException, PluginException, MalformedURLException {
        mgr = InitialNaming.lookup(PluginManager.NAME);
        final String version = argVersion.isSet() ? argVersion.getValue() : VmUtils.getVm().getVersion();
        final String pluginId = argPluginID.getValue();
        final PluginReference pluginRef = new PluginReference(pluginId, new Version(version));
        if (argLoaderUrl.isSet()) {
            addPluginLoader(argLoaderUrl.getValue());
        } else if (argLoad.isSet()) {
            loadPlugin(pluginRef);
        } else if (argReload.isSet()) {
View Full Code Here

TOP

Related Classes of org.jnode.plugin.PluginReference

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.