Package org.jboss.seam.wiki.core.plugin.metamodel

Examples of org.jboss.seam.wiki.core.plugin.metamodel.Plugin


            response.sendError(HttpServletResponse.SC_BAD_REQUEST, "Resource name not found");
            return;
        }

        PluginRegistry registry = PluginRegistry.instance();
        Plugin plugin = registry.getPlugin(pluginKey);
        if (plugin == null) {
            response.sendError(HttpServletResponse.SC_NOT_FOUND, "Plugin not found in registry: " + pluginKey);
            return;
        }
        PluginModule pluginModule = plugin.getModuleByKey(pluginModuleKey);
        if (pluginModule == null) {
            response.sendError(HttpServletResponse.SC_NOT_FOUND, "Plugin module not found: " + pluginKey+"."+pluginModuleKey);
            return;
        }

        org.jboss.seam.contexts.Contexts.getEventContext().set("currentPluginModule", pluginModule);

        String resourcePath = plugin.getPackageThemePath() + "/" + themeResourceName + "." + themeResourceExtension;
        InputStream in = Resources.getResourceAsStream(resourcePath, getServletContext());

        if (in != null) {

            boolean isInterpolated = false;
View Full Code Here

TOP

Related Classes of org.jboss.seam.wiki.core.plugin.metamodel.Plugin

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.