Skip to content

Commit

Permalink
Make ServiceProviderExtensionFinder optional in demo (commented code)
Browse files Browse the repository at this point in the history
  • Loading branch information
decebals committed Jun 29, 2022
1 parent dacbda1 commit c36ab8f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions demo/app/src/main/java/org/pf4j/demo/Boot.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
package org.pf4j.demo;

import org.apache.commons.lang.StringUtils;
import org.pf4j.DefaultExtensionFinder;
import org.pf4j.DefaultPluginManager;
import org.pf4j.ExtensionFinder;
import org.pf4j.PluginManager;
import org.pf4j.PluginWrapper;
import org.pf4j.demo.api.Greeting;
Expand Down Expand Up @@ -132,6 +130,10 @@ private static void printLogo() {
}

private static PluginManager createPluginManager() {
return new DefaultPluginManager();

// use below plugin manager instance if you want to enable ServiceProviderExtensionFinder
/*
return new DefaultPluginManager() {
@Override
Expand All @@ -143,6 +145,7 @@ protected ExtensionFinder createExtensionFinder() {
}
};
*/
}

}

0 comments on commit c36ab8f

Please sign in to comment.