Examples of PluginException


Examples of org.objectweb.celtix.plugins.PluginException

            || (state == PluginState.LOADED && nextState == PluginState.UNLOADED)) {
            LOG.fine("changing state from " + state + " to " + nextState);
            state = nextState;
        } else {
            Message msg = new Message("INVALID_STATE_TRANSITION_EXC", BUNDLE, state, nextState);
            throw new PluginException(msg);
        }
        notifyAll();
    }
View Full Code Here

Examples of org.objectweb.celtix.plugins.PluginException

     * @see org.objectweb.celtix.plugins.PluginManager#registerPlugin(org.objectweb.celtix.plugins.Plugin)
     */
    public synchronized void registerPlugin(Object plugin) throws PluginException {
        PluginInfo info = findPluginInfo(plugin);
        if (info.isRegisteredWith(this)) {
            throw new PluginException(new Message("ALREADY_REGISTERED_EXC", LOG, info.getClassName()));
        } else {
            info.register(this);
        }
    }
View Full Code Here

Examples of org.objectweb.celtix.plugins.PluginException

     * @see org.objectweb.celtix.plugins.PluginManager#unloadPlugin(java.lang.String)
     */
    public synchronized void unloadPlugin(Object plugin) throws PluginException {
        PluginInfo info = findPluginInfo(plugin);
        if (info.isRegistered()) {
            throw new PluginException(new Message("STILL_REGISTERED_EXC", LOG, info.getClassName()));
        } else {
            plugins.remove(plugin);
            info = null;
        }   
    }
View Full Code Here

Examples of org.objectweb.celtix.plugins.PluginException

    public synchronized void unregisterPlugin(Object plugin) throws PluginException {
        PluginInfo info = findPluginInfo(plugin);
        if (info.isRegisteredWith(this)) {
            info.unregister(this);
        } else {
            throw new PluginException(new Message("NOT_REGISTERED_EXC", LOG, info.getClassName()));
        }
    }
View Full Code Here

Examples of org.objectweb.celtix.plugins.PluginException

        // check for circular dependencies

        if (dependent != null) {
            info.setRequiredFor(dependent);
            if (info.isCircularDependency()) {
                throw new PluginException(new Message("CIRCULAR_DEPENDENCY_EXC", LOG, pluginClassName));
            }
        }

        if (null != pluginName) {
            Configuration configuration = getConfiguration();
View Full Code Here

Examples of org.objectweb.celtix.plugins.PluginException

        try {
            Class<?> pluginClass = Class.forName(pluginClassName, true, cl);
            plugin = pluginClass.newInstance();
        } catch (Exception ex) {
            LogUtils.log(LOG, Level.SEVERE, "PLUGIN_LOAD_FAILURE_MSG", ex, pluginClassName);
            throw new PluginException(new Message("LOAD_FAILED_EXC", LOG, pluginClassName), ex);
        }
        return plugin;
    }
View Full Code Here

Examples of org.pdfsam.guiclient.exceptions.PluginException

        else {
          try{
            String configSearchPath = new File(URLDecoder.decode(getClass().getProtectionDomain().getCodeSource().getLocation().getPath(), "UTF-8")).getParent();
                this.pluginsDirectory = new File(configSearchPath, "plugins");
            }catch (Exception e){
                throw new PluginException(GettextResource.gettext(Configuration.getInstance().getI18nResourceBundle(),"Error getting plugins directory."), e);
            }
        }
        pluginsList = getPlugInsList();
    }
View Full Code Here

Examples of org.pdfsam.guiclient.exceptions.PluginException

                    if (pluginsSubDirs[i].isDirectory()){
                      retVal.add(pluginsSubDirs[i]);
                    }
                }
              }catch (Exception e){
                  throw new PluginException("Error getting plugins list",e);
              }
        }else{
            throw new PluginException(GettextResource.gettext(Configuration.getInstance().getI18nResourceBundle(),"Cannot read plugins directory ")+pluginsDirectory.getAbsolutePath());
          }
      }else{
        throw new PluginException(GettextResource.gettext(Configuration.getInstance().getI18nResourceBundle(),"Plugins directory is null."));
      }      
        return (File[])retVal.toArray(new File[retVal.size()]);
    }
View Full Code Here

Examples of org.socialmusicdiscovery.server.api.plugin.PluginException

        browseServiceManager.addBrowseService(SpotifyTrack.class.getSimpleName(), SpotifyTrackBrowseService.class, getConfiguration());

        try {
            browseMenuManager.loadMenusFromXml(getClass().getResourceAsStream("/org/socialmusicdiscovery/server/plugins/mediaimport/spotify/spotify-menus.xml"));
        } catch (IOException e) {
            throw new PluginException(e);
        } catch (ParsingException e) {
            throw new PluginException(e);
        }

        return true;
    }
View Full Code Here

Examples of org.socialmusicdiscovery.server.api.plugin.PluginException

        System.out.println("Starting grizzly...");
        URI uri = UriBuilder.fromUri("http://0.0.0.0/").port(Integer.parseInt(serverPort)).build();
        try {
            threadSelector = GrizzlyWebContainerFactory.create(uri, initParams);
        } catch (IOException e) {
            throw new PluginException(e);
        }
        System.out.println(String.format("Try out %sapplication.wadl", uri));
        return true;
    }
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.