Package growthbook.sdk.java.plugin
Class PluginRegistry
java.lang.Object
growthbook.sdk.java.plugin.PluginRegistry
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseAll()<V> voidfireExperimentViewed(Experiment<V> experiment, ExperimentResult<V> result) <V> voidfireFeatureEvaluated(String featureKey, FeatureResult<V> result) voidinitAll()booleanisEmpty()
-
Constructor Details
-
PluginRegistry
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
initAll
public void initAll() -
fireExperimentViewed
-
fireFeatureEvaluated
-
closeAll
public void closeAll()
-