Package org.jnode.plugin

Examples of org.jnode.plugin.PluginException


     */
    protected void startPlugin() throws PluginException {
        try {
            InitialNaming.bind(PcTextScreenManager.NAME, mgr);
        } catch (NamingException ex) {
            throw new PluginException(ex);
        }
    }
View Full Code Here


            });
        this.repository = r;
        try {
            InitialNaming.bind(SystemRepository.NAME, r);
        } catch (NamingException ex) {
            throw new PluginException(ex);
        }
        r.start();
    }
View Full Code Here

     * @throws PluginException
     */
    protected void resolve(PluginRegistryModel registry)
        throws PluginException {
        if (registry.getPluginDescriptor(reference.getId()) == null) {
            throw new PluginException(
                "Unknown plugin " + reference + " in import of " + getDeclaringPluginDescriptor().getId());
        }
    }
View Full Code Here

        super(plugin);
        id = getAttribute(e, "id", true);
        name = getAttribute(e, "name", true);
        uniqueId = plugin.getId() + '.' + id;
        if (id.indexOf('.') >= 0) {
            throw new PluginException("id cannot contain a '.'");
        }
    }
View Full Code Here

        this.loaderMgr = new DefaultPluginLoaderManager();
        this.registry = registry;
        try {
            InitialNaming.bind(NAME, this);
        } catch (NamingException ex) {
            throw new PluginException("Cannot register name", ex);
        }
    }
View Full Code Here

                    i = all.values().iterator();
                }

            }
            if (additions == 0) {
                throw new PluginException(
                    "Cycle in plugin prerequisites remaining: " + all.keySet());
            }
        }

        return list;
View Full Code Here

                    i.remove();
                    change = true;
                }
            }
            if (!change) {
                throw new PluginException("Failed to resolve all descriptors: " + descriptors);
            }
        }
    }
View Full Code Here

     */
    protected synchronized void registerPlugin(PluginDescriptorModel descr)
        throws PluginException {
        final String id = descr.getId();
        if (descriptorMap.containsKey(id)) {
            throw new PluginException("Duplicate plugin " + id);
        }
        descriptorMap.put(id, descr);
    }
View Full Code Here

     */
    protected synchronized void registerExtensionPoint(ExtensionPoint ep)
        throws PluginException {
        final BootableHashMap<String, ExtensionPoint> epMap = this.extensionPoints;
        if (epMap.containsKey(ep.getUniqueIdentifier())) {
            throw new PluginException(
                "Duplicate extension point " + ep.getUniqueIdentifier());
        }
        epMap.put(ep.getUniqueIdentifier(), ep);
    }
View Full Code Here

        } catch (PrivilegedActionException pax) {
            final Throwable ex = pax.getException();
            if (ex instanceof PluginException) {
                throw (PluginException) ex;
            } else {
                throw new PluginException(ex);
            }
        }
        final PluginDescriptorModel descr = pluginJar.getDescriptorModel();
        if (resolve) {
            descr.resolve(this);
View Full Code Here

TOP

Related Classes of org.jnode.plugin.PluginException

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.