Permalink
Browse files

Plugins have names.

  • Loading branch information...
1 parent 1ccdd43 commit 993ad2931eb34ca13428d6dad016000a7f895818 @ccidral ccidral committed Nov 20, 2012
@@ -40,4 +40,7 @@
* <p>Note that fields annotated with {@link javax.inject.Inject} are injected by the IoC container.</p>
*/
public interface Plugin {
+
+ String getName();
+
}
@@ -55,7 +55,7 @@ public void loadPluginsFrom(Directory directory) {
Plugin plugin = pluginLoader.load(pluginPack);
loadedPlugins.add(plugin);
- log.info("Loaded plugin {}", plugin);
+ log.info("Loaded plugin {}", plugin.getName());
bus.publish(new PluginLoaded(plugin));
}
@@ -44,7 +44,7 @@ public PluginModel(Plugin plugin) {
@Override
public String toString() {
- return plugin.toString();
+ return plugin.getName();
}
}
}

0 comments on commit 993ad29

Please sign in to comment.