Changeset 929 for trunk/autoquest-plugin-core/src/main/java/de/ugoe/cs/autoquest/plugin/PluginLoader.java
- Timestamp:
- 10/17/12 11:54:37 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-core/src/main/java/de/ugoe/cs/autoquest/plugin/PluginLoader.java
r927 r929 33 33 /** 34 34 * <p> 35 * This class provides the functionality to load QUEST plug-ins from a35 * This class provides the functionality to load AutoQUEST plug-ins from a 36 36 * pre-defined folder. 37 37 * </p> … … 54 54 * </p> 55 55 */ 56 private final Collection< QuestPlugin> plugins;56 private final Collection<AutoQUESTPlugin> plugins; 57 57 58 58 /** … … 77 77 } 78 78 this.pluginDir = pluginDir; 79 plugins = new LinkedList< QuestPlugin>();79 plugins = new LinkedList<AutoQUESTPlugin>(); 80 80 } 81 81 … … 112 112 } 113 113 try { 114 QuestPlugin pluginObject = (QuestPlugin) pluginClass114 AutoQUESTPlugin pluginObject = (AutoQUESTPlugin) pluginClass 115 115 .newInstance(); 116 116 plugins.add(pluginObject); … … 123 123 } catch (ClassCastException e) { 124 124 throw new PluginLoaderException("Class " + pluginClassName 125 + " not instance of QuestPlugin");125 + " not instance of AutoQUESTPlugin"); 126 126 } 127 127 } … … 232 232 /** 233 233 * <p> 234 * Checks if the name of a file indicates that it defines a QUEST plug-in.234 * Checks if the name of a file indicates that it defines a AutoQUEST plug-in. 235 235 * The structure of valid plug-in filenames is 236 236 * <code>quest-plugin-%PLUGIN_NAME%-version.jar</code>, where … … 241 241 * @param filename 242 242 * filename that is checked 243 * @return true if filename matches pattern of QUEST plug-in; false243 * @return true if filename matches pattern of AutoQUEST plug-in; false 244 244 * otherwise 245 245 */ … … 254 254 } 255 255 256 public Collection< QuestPlugin> getPlugins() {256 public Collection<AutoQUESTPlugin> getPlugins() { 257 257 return Collections.unmodifiableCollection(plugins); 258 258 }
Note: See TracChangeset
for help on using the changeset viewer.