Package giggler.boot

Examples of giggler.boot.PluginClassLoader


    private boolean isDependency(Object instance, Object linked) {
       
        if (isClassPathLoaded(instance) || isClassPathLoaded(linked))
            return false;
       
        PluginClassLoader pluginClassLoader = getClassLoader(instance);
       
        if (pluginClassLoader == null)
            return false;
       
        ClassLoader classLoader = getClassLoader(linked);

        if (classLoader == null)
            return false;

        return pluginClassLoader.isDependency(classLoader);
    }
View Full Code Here


    private void removeDependency(Plugin plugin, Plugin superiorPlugin) {

        if (isClassPathLoaded(plugin) || isClassPathLoaded(superiorPlugin))
            return;

        PluginClassLoader pluginClassLoader = getClassLoader(plugin);
       
        if (pluginClassLoader == null)
            return;
       
        ClassLoader classLoader = getClassLoader(superiorPlugin);

        if (classLoader == null)
            return;

        pluginClassLoader.removeDependency(classLoader);
    }
View Full Code Here

    private void addDependency(Plugin plugin, Plugin dependency) {
       
        if (isClassPathLoaded(plugin) || isClassPathLoaded(dependency))
            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

TOP

Related Classes of giggler.boot.PluginClassLoader

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.