Package de.zib.scalaris.examples.wikipedia.plugin

Examples of de.zib.scalaris.examples.wikipedia.plugin.PluginClassLoader


     */
    @SuppressWarnings("unchecked")
    protected synchronized boolean loadPlugins() {
        final String pluginDir = getServletContext().getRealPath("/WEB-INF/plugins");
        try {
            PluginClassLoader pcl = new PluginClassLoader(pluginDir, new Class[] {WikiPlugin.class});
            List<Class<?>> plugins = pcl.getClasses(WikiPlugin.class);
            if (plugins != null) {
                for (Class<?> clazz: plugins) {
                    WikiPlugin plugin;
                    try {
                        plugin = ((Class<WikiPlugin>) clazz).newInstance();
View Full Code Here

TOP

Related Classes of de.zib.scalaris.examples.wikipedia.plugin.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.