summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordecebals <decebal.suiu@gmail.com>2019-05-03 01:18:55 +0300
committerdecebals <decebal.suiu@gmail.com>2019-05-03 01:18:55 +0300
commitb6b4e3ddc42fcbabcaa784c53f383e098b7c87c7 (patch)
treef366f1cb5c7a56ed4c1fb95749fd53ac03d8d639
parenta487cbf37a0e3c6d36113d5da7c0571398a19d43 (diff)
downloadpf4j-b6b4e3ddc42fcbabcaa784c53f383e098b7c87c7.tar.gz
pf4j-b6b4e3ddc42fcbabcaa784c53f383e098b7c87c7.zip
Remove unneeded method
-rw-r--r--pf4j/src/main/java/org/pf4j/AbstractPluginManager.java8
-rw-r--r--pf4j/src/main/java/org/pf4j/PluginWrapper.java5
2 files changed, 5 insertions, 8 deletions
diff --git a/pf4j/src/main/java/org/pf4j/AbstractPluginManager.java b/pf4j/src/main/java/org/pf4j/AbstractPluginManager.java
index fc0a22e..5a7546e 100644
--- a/pf4j/src/main/java/org/pf4j/AbstractPluginManager.java
+++ b/pf4j/src/main/java/org/pf4j/AbstractPluginManager.java
@@ -15,6 +15,10 @@
*/
package org.pf4j;
+import org.pf4j.util.StringUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import java.io.Closeable;
import java.io.IOException;
import java.nio.file.Files;
@@ -27,9 +31,6 @@ import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
-import org.pf4j.util.StringUtils;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
/**
* This class implements the boilerplate plugin code that any {@link PluginManager}
@@ -820,7 +821,6 @@ public abstract class AbstractPluginManager implements PluginManager {
log.debug("Creating wrapper for plugin '{}'", pluginPath);
PluginWrapper pluginWrapper = new PluginWrapper(this, pluginDescriptor, pluginPath, pluginClassLoader);
pluginWrapper.setPluginFactory(getPluginFactory());
- pluginWrapper.setRuntimeMode(getRuntimeMode());
// test for disabled plugin
if (isPluginDisabled(pluginDescriptor.getPluginId())) {
diff --git a/pf4j/src/main/java/org/pf4j/PluginWrapper.java b/pf4j/src/main/java/org/pf4j/PluginWrapper.java
index 209afb9..a9aa147 100644
--- a/pf4j/src/main/java/org/pf4j/PluginWrapper.java
+++ b/pf4j/src/main/java/org/pf4j/PluginWrapper.java
@@ -41,6 +41,7 @@ public class PluginWrapper {
this.pluginClassLoader = pluginClassLoader;
pluginState = PluginState.CREATED;
+ runtimeMode = pluginManager.getRuntimeMode();
}
/**
@@ -134,10 +135,6 @@ public class PluginWrapper {
this.pluginState = pluginState;
}
- void setRuntimeMode(RuntimeMode runtimeMode) {
- this.runtimeMode = runtimeMode;
- }
-
void setPluginFactory(PluginFactory pluginFactory) {
this.pluginFactory = pluginFactory;
}