Class PluginRegistry

java.lang.Object
growthbook.sdk.java.plugin.PluginRegistry

public final class PluginRegistry extends Object
Holds a set of GrowthBookPlugins registered with a GrowthBook instance and dispatches lifecycle/event callbacks to each one.

Dispatch is best-effort: a plugin that throws is isolated so the failure never propagates to the evaluator or other plugins. A plugin whose GrowthBookPlugin.init() throws is dropped and receives no further events. Errors are not swallowed — only Exceptions are.

  • Constructor Details

  • Method Details

    • isEmpty

      public boolean isEmpty()
    • initAll

      public void initAll()
    • fireExperimentViewed

      public <V> void fireExperimentViewed(Experiment<V> experiment, ExperimentResult<V> result)
    • fireFeatureEvaluated

      public <V> void fireFeatureEvaluated(String featureKey, FeatureResult<V> result)
    • closeAll

      public void closeAll()