Package com.sun.syndication.util

Examples of com.sun.syndication.util.PlugableClasses


public class ModulesGenerator {
    private Map _feedModuleGenerators = new HashMap();
    private Map _itemModuleGenerators = new HashMap();

    private void loadGenerators(String defaultFile,String fileProperty,String key,Map map) {
        PlugableClasses pClasses = new PlugableClasses(defaultFile,fileProperty,
                                                        key,true,ModulesGenerator.class.getClassLoader());
        Object[] generators;
        try {
            generators = pClasses.createInstances();
        }
        catch (Exception ex) {
            throw new RuntimeException(ex);
        }
        for (int i=0;i<generators.length;i++) {
View Full Code Here


    private Map _converters;
    private List _types;

    private Map loadConverters(String defaultFile,String fileProperty) {
        Map map = new HashMap();
        PlugableClasses pClasses = new PlugableClasses(defaultFile,fileProperty,
                                                       Constants.CONVERTERS_KEY,true,SyndFeed.class.getClassLoader());
        Object[] converters;
        try {
            converters = pClasses.createInstances();
        }
        catch (Exception ex) {
            throw new RuntimeException(ex);
        }
        for (int i=0;i<converters.length;i++) {
View Full Code Here

    private List _types;

    private Map loadGenerators(String defaultFile,String fileProperty) {
        Map map = new HashMap();
        PlugableClasses pClasses = new PlugableClasses(defaultFile,fileProperty,Constants.FEED_GENERATORS_KEY,
                                                       true,FeedGenerators.class.getClassLoader());
        Object[] generators;
        try {
            generators = pClasses.createInstances();
        }
        catch (Exception ex) {
            throw new RuntimeException(ex);
        }
        for (int i=0;i<generators.length;i++) {
View Full Code Here

    private List PARSERS;
    private List TYPES;

    private List loadParsers(String defaultFile,String fileProperty) {
        List list = new ArrayList();
        PlugableClasses pClasses = new PlugableClasses(defaultFile,fileProperty,Constants.FEED_PARSERS_KEY,
                                                       true,FeedParsers.class.getClassLoader());
        Object[] parsers;
        try {
            parsers = pClasses.createInstances();
        }
        catch (Exception ex) {
            throw new RuntimeException(ex);
        }
        for (int i=0;i<parsers.length;i++) {
View Full Code Here

public class ModulesParser {
    private Map _feedModuleParsers = new HashMap();
    private Map _itemModuleParsers = new HashMap();

    private void loadParsers(String defaultFile,String fileProperty,String key,Map map) {
        PlugableClasses pClasses = new PlugableClasses(defaultFile,fileProperty,
                                                        key,true,ModulesParser.class.getClassLoader());
        Object[] parsers;
        try {
            parsers = pClasses.createInstances();
        }
        catch (Exception ex) {
            throw new RuntimeException(ex);
        }
        for (int i=0;i<parsers.length;i++) {
View Full Code Here

TOP

Related Classes of com.sun.syndication.util.PlugableClasses

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.