Examples of PluginNotFoundException


Examples of com.bramosystems.oss.player.core.client.PluginNotFoundException

    public final BrowserPlugin getEnabledPlugin() throws PluginNotFoundException {
        BrowserPlugin plug = _getEnabledPlugin();
        if (plug != null) {
            return plug;
        } else {
            throw new PluginNotFoundException("No Plugin found for type - '" + getType() + "' !");
        }
    }
View Full Code Here

Examples of com.bramosystems.oss.player.core.client.PluginNotFoundException

    public static PluginInfo getPluginInfo(Plugin plugin) throws PluginNotFoundException {
        if (corePluginInfoMap.containsKey(plugin)) {
            return corePluginInfoMap.get(plugin);
        } else {
            throw new PluginNotFoundException(plugin);
        }
    }
View Full Code Here

Examples of com.bramosystems.oss.player.core.client.PluginNotFoundException

                            if (plug.getFileName().toLowerCase().contains("totem")
                                    || plug.getDescription().toLowerCase().contains("totem")) {
                                pwt = PluginInfo.PlayerPluginWrapperType.Totem;
                            }
                        } else {
                            throw new PluginNotFoundException(plugin);
                        }
                        break;
                    case Native:
                        if (isHTML5CompliantClient()) {
                            pv = PluginVersion.get(5, 0, 0);
                        } else {
                            throw new PluginNotFoundException(plugin);
                        }
                }
                return new PluginInfo(plugin, pv, pwt);
            }

            PluginMimeTypes pt = PluginMimeTypes.none;
            switch (plugin) {
                case DivXPlayer:
                    pt = PluginMimeTypes.divx;
                    break;
                case FlashPlayer:
                    pt = PluginMimeTypes.flash;
                    break;
                case QuickTimePlayer:
                    pt = PluginMimeTypes.quicktime;
                    break;
                case VLCPlayer:
                    pt = PluginMimeTypes.vlc;
                    break;
            }

            MimeType mt = MimeType.getMimeType(pt.mime);
            if (mt != null) {   // plugin present...
                try {
                    String desc = mt.getEnabledPlugin().getDescription();
                    String name = mt.getEnabledPlugin().getName();
                    if (name.toLowerCase().contains(pt.whois)) { // who has it?
                        RegExp.RegexResult res = RegExp.getRegExp(pt.regex, "").exec(pt.versionInName ? name : desc);
                        pv = new PluginVersion(Integer.parseInt(res.getMatch(1)),
                                Integer.parseInt(res.getMatch(2)), res.getMatch(3) != null ? Integer.parseInt(res.getMatch(4)) : 0);
                        if (mt.getEnabledPlugin().getFileName().toLowerCase().contains("totem")
                                || desc.toLowerCase().contains("totem")) {
                            pwt = PluginInfo.PlayerPluginWrapperType.Totem;
                        }
                    }
                } catch (RegexException ex) {
                }
            } else {
                throw new PluginNotFoundException(plugin);
            }
            return new PluginInfo(plugin, pv, pwt);
        }
View Full Code Here

Examples of com.bramosystems.oss.player.core.client.PluginNotFoundException

                    if (isHTML5CompliantClient()) {
                        pv = PluginVersion.get(5, 0, 0);
                    }
            }
            if (pv.compareTo(new PluginVersion()) <= 0) {
                throw new PluginNotFoundException(plugin);
            }
            return new PluginInfo(plugin, pv, PluginInfo.PlayerPluginWrapperType.Native);
        }
View Full Code Here

Examples of com.sonyericsson.hudson.plugins.gerrit.trigger.api.exception.PluginNotFoundException

     * @throws PluginNotFoundException throw if plugin is not found.
     * @throws PluginStatusException throw if plugin status is wrong.
     */
    @Test
    public void onReceiveWithPluginNotFoundException() throws PluginNotFoundException, PluginStatusException {
        doThrow(new PluginNotFoundException()).when(apiMock).getHandler();

        RabbitMQMessageListenerImpl listener = new RabbitMQMessageListenerImpl();
        Whitebox.setInternalState(listener, GerritTriggerApi.class, apiMock);

        listener.onBind("TEST");
View Full Code Here

Examples of com.sonyericsson.hudson.plugins.gerrit.trigger.api.exception.PluginNotFoundException

     * @throws PluginStatusException if plugin is inactive.
     */
    private PluginImpl getActivePlugin() throws PluginNotFoundException, PluginStatusException {
        PluginImpl plugin = Jenkins.getInstance().getPlugin(PluginImpl.class);
        if (plugin == null) {
            throw new PluginNotFoundException();
        }
        if (!plugin.isActive()) {
            throw new PluginStatusException();
        }
        return plugin;
View Full Code Here

Examples of de.kilobyte22.app.kibibyte.exceptions.PluginNotFoundException

    public void load(String name) throws PluginNotFoundException, InvalidPluginException, ClassNotFoundException, IOException, InstantiationException, IllegalAccessException, PluginAlreadyLoadedException {
        if (plugins.get(name) != null)
            throw new PluginAlreadyLoadedException(name);
        File plugin = allPlugins.get(name);
        if (plugin == null)
            throw new PluginNotFoundException();
        Plugin p = new Plugin(plugin, bot);
        plugins.put(name, p);
    }
View Full Code Here

Examples of de.kilobyte22.app.kibibyte.exceptions.PluginNotFoundException

        plugins.put(name, p);
    }

    public void unload(String name) throws PluginNotFoundException {
        if (plugins.get(name) == null)
            throw new PluginNotFoundException();
        plugins.get(name).unload();
        plugins.remove(name);
        System.gc(); // Make sure the plugin gets eaten by the GC
    }
View Full Code Here

Examples of de.kilobyte22.app.kibibyte.exceptions.PluginNotFoundException

        System.gc(); // Make sure the plugin gets eaten by the GC
    }

    public void enable(String name) throws PluginNotFoundException {
        if (plugins.get(name) == null)
            throw new PluginNotFoundException();
        plugins.get(name).enable();
    }
View Full Code Here

Examples of de.kilobyte22.app.kibibyte.exceptions.PluginNotFoundException

        plugins.get(name).enable();
    }

    public void disable(String name) throws PluginNotFoundException {
        if (plugins.get(name) == null)
            throw new PluginNotFoundException();
        plugins.get(name).disable();
    }
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.