classLoaderPatcher.patch(classLoader, pluginPath, agentClassLoader, null);
}
for (String discoveredPlugin : discoveredPlugins) {
Class pluginClass = Class.forName(discoveredPlugin, true, agentClassLoader);
Plugin pluginAnnotation = (Plugin) pluginClass.getAnnotation(Plugin.class);
if (pluginAnnotation == null) {
LOGGER.error("Scanner discovered plugin class {} which does not contain @Plugin annotation.", pluginClass);
}
String pluginName = pluginAnnotation.name();
if (HotswapAgent.isPluginDisabled(pluginName)) {
LOGGER.debug("Plugin {} is disabled, skipping...", pluginName);
continue;
}