Package giggler.exception

Examples of giggler.exception.IllegalPluginException


            return;
       
        PluginClassLoader pluginClassLoader = getClassLoader(plugin);
       
        if (pluginClassLoader == null)
            throw new IllegalPluginException("plugin '"+plugin.getName()+"' can not have dependencies");
       
        ClassLoader classLoader = getClassLoader(dependency);

        if (classLoader == null)
            throw new IllegalPluginException("plugin '"+dependency.getName()+"' can not be set as dependency");

        log.info("["+plugin.getName()+"] dependent from ["+dependency.getName()+"]");
       
        pluginClassLoader.addDependency(classLoader);
    }
View Full Code Here


            long _bit = bit;
           
            bit = (bit<<1);

            if (shifts++ >= max)
                throw new IllegalPluginException("limit of concurrent plugins ("+shifts+") has been reached");

            return _bit;
        }
View Full Code Here

          pluginJarFile = copy(pluginJarFile, pluginVersionDirectory);

        } catch (Exception e) {

            throw new IllegalPluginException("copying "+pluginJarFile.getName()+" from "+pluginJarFile.getPath()+" to "+pluginVersionDirectory.getParent()+" failed", e);
        }
       
        try {

            unpacker.unpack(pluginJarFile);

        } catch (Exception e) {

            throw new IllegalPluginException("unpacking "+pluginJarFile.getName()+" failed", e);
        }
    }
View Full Code Here

        try {

            URL pluginDescriptorUrl = file.toURI().toURL();

            if (pluginDescriptorUrl == null)
                throw new IllegalPluginException("missing plugin descriptor at '"+getName()+"'");
           
            PluginDescriptor pluginDescriptor = new PluginDescriptor(pluginDescriptorUrl.openStream());
            return pluginDescriptor;

        } catch (FileNotFoundException fnfe) {

            log.debug("directory '"+pluginRootDirectory.getAbsolutePath()+"' does not contain a plugin descriptor");
           
        } catch (Exception e) {

            e.printStackTrace();
            throw new IllegalPluginException("accessing the plugin descriptor failed", e);
        }
       
        return null;
    }
View Full Code Here

TOP

Related Classes of giggler.exception.IllegalPluginException

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.