Package giggler

Examples of giggler.Runtime


       
        pluginDescriptor = loadPluginDescriptor();
       
        Class<Runtime> runtimeClass = getRuntimeClass();
       
        Runtime runtime = null;
       
        if (runtimeClass != null) {
           
            try {
               
                runtime = runtimeClass.newInstance();
               
            } catch (Exception e) {
                e.printStackTrace();
                throw new IllegalPluginException(e);
            }
        }
       
        File files[] = pluginDirectory.listFiles();
       
        for (File file : files) {
           
            boolean addToClassLoader = true;
           
            if (file.equals(pluginJarFile))
                addToClassLoader = false;
            else if (runtime != null)
                addToClassLoader = runtime.use(file.getName());
           
            if (addToClassLoader) {
               
                try {
                   
View Full Code Here

TOP

Related Classes of giggler.Runtime

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.