diff options
author | Decebal Suiu <decebal.suiu@gmail.com> | 2012-11-07 13:40:33 +0200 |
---|---|---|
committer | Decebal Suiu <decebal.suiu@gmail.com> | 2012-11-07 13:40:33 +0200 |
commit | 07550657ef0412eae460e57439a8fc543b75233f (patch) | |
tree | 74a9be272ccd767baaca3dda1b872b5ae0783d85 /demo/app/src | |
parent | 363b2b093ccecfc75fd28f49ca2aa139bbc6d1ce (diff) | |
download | pf4j-07550657ef0412eae460e57439a8fc543b75233f.tar.gz pf4j-07550657ef0412eae460e57439a8fc543b75233f.zip |
work on plugin dependecy
Diffstat (limited to 'demo/app/src')
-rw-r--r-- | demo/app/src/main/java/ro/fortsoft/pf4j/demo/Boot.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/demo/app/src/main/java/ro/fortsoft/pf4j/demo/Boot.java b/demo/app/src/main/java/ro/fortsoft/pf4j/demo/Boot.java index 9a361fa..9f218cf 100644 --- a/demo/app/src/main/java/ro/fortsoft/pf4j/demo/Boot.java +++ b/demo/app/src/main/java/ro/fortsoft/pf4j/demo/Boot.java @@ -17,7 +17,6 @@ import java.util.List; import org.apache.commons.lang.StringUtils; import ro.fortsoft.pf4j.DefaultPluginManager; -import ro.fortsoft.pf4j.ExtensionWrapper; import ro.fortsoft.pf4j.PluginManager; import ro.fortsoft.pf4j.demo.api.Greeting; @@ -37,9 +36,9 @@ public class Boot { pluginManager.loadPlugins(); pluginManager.startPlugins(); - List<ExtensionWrapper<Greeting>> greetings = pluginManager.getExtensions(Greeting.class); - for (ExtensionWrapper<Greeting> greeting : greetings) { - System.out.println(">>> " + greeting.getInstance().getGreeting()); + List<Greeting> greetings = pluginManager.getExtensions(Greeting.class); + for (Greeting greeting : greetings) { + System.out.println(">>> " + greeting.getGreeting()); } pluginManager.stopPlugins(); |