summaryrefslogtreecommitdiffstats
path: root/pf4j
diff options
context:
space:
mode:
authorDecebal Suiu <decebal.suiu@gmail.com>2020-07-17 16:44:30 +0300
committerDecebal Suiu <decebal.suiu@gmail.com>2020-07-17 16:44:30 +0300
commit676911da9412b5a257fd8ed0cafe6c3eee1a9d3b (patch)
tree5d6e735e8b82ab95c75a46a637344f4637235e04 /pf4j
parent53745be62c939ee7a6891a2d9507d4da790fa47c (diff)
downloadpf4j-676911da9412b5a257fd8ed0cafe6c3eee1a9d3b.tar.gz
pf4j-676911da9412b5a257fd8ed0cafe6c3eee1a9d3b.zip
Deprecate PluginClassLoader with parentFirst as parameter
Diffstat (limited to 'pf4j')
-rw-r--r--pf4j/src/main/java/org/pf4j/PluginClassLoader.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/pf4j/src/main/java/org/pf4j/PluginClassLoader.java b/pf4j/src/main/java/org/pf4j/PluginClassLoader.java
index fc771de..f1faf00 100644
--- a/pf4j/src/main/java/org/pf4j/PluginClassLoader.java
+++ b/pf4j/src/main/java/org/pf4j/PluginClassLoader.java
@@ -49,13 +49,15 @@ public class PluginClassLoader extends URLClassLoader {
private ClassLoadingStrategy classLoadingStrategy;
public PluginClassLoader(PluginManager pluginManager, PluginDescriptor pluginDescriptor, ClassLoader parent) {
- this(pluginManager, pluginDescriptor, parent, false);
+ this(pluginManager, pluginDescriptor, parent, ClassLoadingStrategy.PDA);
}
/**
+ * @deprecated Replaced by {@link #PluginClassLoader(PluginManager, PluginDescriptor, ClassLoader, ClassLoadingStrategy)}.
* If {@code parentFirst} is {@code true}, indicates that the parent {@link ClassLoader} should be consulted
* before trying to load the a class through this loader.
*/
+ @Deprecated
public PluginClassLoader(PluginManager pluginManager, PluginDescriptor pluginDescriptor, ClassLoader parent, boolean parentFirst) {
this(pluginManager, pluginDescriptor, parent, parentFirst ? ClassLoadingStrategy.APD : ClassLoadingStrategy.PDA);
}