1 25 26 package org.snipsnap.feeder; 27 28 import org.apache.commons.logging.Log; 29 import org.apache.commons.logging.LogFactory; 30 import org.radeox.macro.PluginLoader; 31 import org.radeox.macro.Repository; 32 33 39 40 public class FeederLoader extends PluginLoader { 41 private static Log log = LogFactory.getLog(FeederLoader.class); 42 43 public Class getLoadClass() { 44 return Feeder.class; 45 } 46 47 53 public void add(Repository repository, Object plugin) { 54 if (plugin instanceof Feeder) { 55 repository.put(((Feeder) plugin).getName(), plugin); 56 } else { 57 log.debug("Feeder Loader: " + plugin.getClass() + " not of Type " + getLoadClass()); 58 } 59 } 60 61 } 62 | Popular Tags |