Package interfaces

Examples of interfaces.IPlugin


                Matcher matcher = urlPattern.matcher(url);
                if (matcher.find())
                {
                    //Load the corresponding pattern and download it !
                    IPlugin plugin = loader.getPlugin(pattern.pluginName);

                    //We found and loaded a plugin able to handle the link
                    found = true;

                    if (plugin != null)
                    {
                        //System.out.println(getThread() + "Using plugin " + pattern.pluginName);

                        List<String> urls = plugin.getLinks(url);
                        for (String url : urls)
                        {
                            download(url, localFolder, title, new ICallback() {
                                @Override
                                public void onDownloadFinished(File downloaded) {
View Full Code Here


     * @param name the plugin name
     * @return the corresponding plugin (if loaded successfully before), or null
     */
    public IPlugin getPlugin(String name)
    {
        IPlugin result = null;

        Class<?> c = plugins.get(name);

        if (c != null)
        {
View Full Code Here

TOP

Related Classes of interfaces.IPlugin

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.