diff options
author | Tyler Hawkes <tylerhawkes@users.noreply.github.com> | 2018-01-14 02:51:34 -0700 |
---|---|---|
committer | Decebal Suiu <decebal.suiu@gmail.com> | 2018-01-14 11:51:34 +0200 |
commit | 44acc380810180593c8c6e85f80f5274d71540a2 (patch) | |
tree | 8f5999d32feb33b7abedb16eebfbd2e25003fec3 /demo | |
parent | 4477d2243c723df4635729d3b2cb32c90c256838 (diff) | |
download | pf4j-44acc380810180593c8c6e85f80f5274d71540a2.tar.gz pf4j-44acc380810180593c8c6e85f80f5274d71540a2.zip |
Can now just get Extension classes (#191)
Diffstat (limited to 'demo')
-rw-r--r-- | demo/app/src/main/java/org/pf4j/demo/Boot.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/demo/app/src/main/java/org/pf4j/demo/Boot.java b/demo/app/src/main/java/org/pf4j/demo/Boot.java index ba5396e..a4e32dd 100644 --- a/demo/app/src/main/java/org/pf4j/demo/Boot.java +++ b/demo/app/src/main/java/org/pf4j/demo/Boot.java @@ -61,6 +61,12 @@ public class Boot { System.out.println(" " + extension); } + System.out.println("Extension classes by classpath:"); + List<Class<Greeting>> greetingsClasses = pluginManager.getExtensionClasses(Greeting.class); + for (Class<Greeting> greeting : greetingsClasses) { + System.out.println(" Class: " + greeting.getCanonicalName()); + } + // print extensions ids for each started plugin List<PluginWrapper> startedPlugins = pluginManager.getStartedPlugins(); for (PluginWrapper plugin : startedPlugins) { |