You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the HTTP scenario, I want to inject the rest plugin and the okhttp plugin at one time, but the break here causes only one plugin to take effect, and I don't want to load the httpclient4 plugin, but this makes it effective.
private void lazyLoadPlugin(ModelSpec modelSpec, Model model) throws ExperimentException {
PluginLifecycleListener listener = ManagerFactory.getListenerManager().getPluginLifecycleListener();
if (listener == null) {
throw new ExperimentException("can get plugin listener");
}
PluginBeans pluginBeans = ManagerFactory.getPluginManager().getPlugins(modelSpec.getTarget());
if (pluginBeans == null) {
throw new ExperimentException("can get plugin bean");
}
if (pluginBeans.isLoad()) {
return;
}
for (PluginBean pluginBean : pluginBeans.getPluginBeans()) {
String flag = model.getMatcher().get(pluginBean.getName());
if ("true".equalsIgnoreCase(flag)) {
listener.add(pluginBean);
break;
}
listener.add(pluginBean);
}
ManagerFactory.getPluginManager().setLoad(pluginBeans, modelSpec.getTarget());
}
Describe what you expected to happen
How to reproduce it (as minimally and precisely as possible)
Issue Description
bug report
Describe what happened (or what feature you want)
In the HTTP scenario, I want to inject the rest plugin and the okhttp plugin at one time, but the break here causes only one plugin to take effect, and I don't want to load the httpclient4 plugin, but this makes it effective.
Describe what you expected to happen
How to reproduce it (as minimally and precisely as possible)
Tell us your environment
macos
chaosblade-exec-jvm v1.7.2
Anything else we need to know?
I think this might be better
The text was updated successfully, but these errors were encountered: