Package org.rhq.core.pc.plugin

Examples of org.rhq.core.pc.plugin.SimplePluginFinder


            throw new MojoFailureException("Could not load URL for plugin file: " + pluginFile);
        }

        log.info("Plugin descriptor directory URL:" + pluginUrl);

        SimplePluginFinder finder = new SimplePluginFinder(pluginUrl);

        // Validate
        boolean success = PluginValidator.validatePlugins(finder);

        if (success) {
View Full Code Here


            throws Exception
    {

        ServletContext context = getServletContext();

        SimplePluginFinder finder = new SimplePluginFinder();

        Set<String> pluginStringSet = context.getResourcePaths("/plugins/");
        for (String pluginString : pluginStringSet)
        {
            if (pluginString.endsWith(".jar"))
            {
                URL pluginUrl = context.getResource(pluginString);
                finder.addUrl(pluginUrl);
            }
        }

        PluginContainerConfiguration config = new PluginContainerConfiguration();
        config.setPluginFinder(finder);
View Full Code Here

    }

    private static SimplePluginFinder createPluginFinder() throws MalformedURLException
    {
        ServletContext servletContext = ServletLifecycle.getServletContext();
        SimplePluginFinder pluginFinder = new SimplePluginFinder();
        Set<String> pluginStringSet = servletContext.getResourcePaths("/plugins/");
        for (String pluginString : pluginStringSet)
        {
            if (pluginString.endsWith(".jar"))
            {
                URL pluginUrl = servletContext.getResource(pluginString);
                pluginFinder.addUrl(pluginUrl);
            }
        }
        return pluginFinder;
    }
View Full Code Here

TOP

Related Classes of org.rhq.core.pc.plugin.SimplePluginFinder

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.