1 17 package com.sun.syndication.io.impl; 18 19 import com.sun.syndication.io.WireFeedGenerator; 20 21 import java.util.List ; 22 23 37 public class FeedGenerators extends PluginManager { 38 39 43 public static final String FEED_GENERATORS_KEY = "WireFeedGenerator.classes"; 44 45 46 public FeedGenerators() { 47 super(FEED_GENERATORS_KEY); 48 } 49 50 public WireFeedGenerator getGenerator(String feedType) { 51 return (WireFeedGenerator) getPlugin(feedType); 52 } 53 54 protected String getKey(Object obj) { 55 return ((WireFeedGenerator)obj).getType(); 56 } 57 58 public List getSupportedFeedTypes() { 59 return getKeys(); 60 } 61 62 } | Popular Tags |