From 3d6233154f44806b95dd4bf01e8264889492a082 Mon Sep 17 00:00:00 2001 From: Dmitry Timofeev Date: Fri, 1 Mar 2019 22:29:33 +0200 Subject: [PATCH] Document thread safety of PluginManagers (#288) --- pf4j/src/main/java/org/pf4j/AbstractPluginManager.java | 2 ++ pf4j/src/main/java/org/pf4j/DefaultPluginManager.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/pf4j/src/main/java/org/pf4j/AbstractPluginManager.java b/pf4j/src/main/java/org/pf4j/AbstractPluginManager.java index 0f847d5..22cf7e3 100644 --- a/pf4j/src/main/java/org/pf4j/AbstractPluginManager.java +++ b/pf4j/src/main/java/org/pf4j/AbstractPluginManager.java @@ -37,6 +37,8 @@ import java.util.Set; * implementation would have to support. * It helps cut the noise out of the subclass that handles plugin management. * + *

This class is not thread-safe. + * * @author Decebal Suiu */ public abstract class AbstractPluginManager implements PluginManager { diff --git a/pf4j/src/main/java/org/pf4j/DefaultPluginManager.java b/pf4j/src/main/java/org/pf4j/DefaultPluginManager.java index c1a695f..96a4104 100644 --- a/pf4j/src/main/java/org/pf4j/DefaultPluginManager.java +++ b/pf4j/src/main/java/org/pf4j/DefaultPluginManager.java @@ -26,6 +26,8 @@ import java.nio.file.Paths; /** * Default implementation of the {@link PluginManager} interface. * + *

This class is not thread-safe. + * * @author Decebal Suiu */ public class DefaultPluginManager extends AbstractPluginManager { -- 2.39.5