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
@Configuration
public class AppConfig {
@Bean
public SpringBootPluginManager pluginManager() {
return new CustomPluginManager();
}
...
}
public class CustomPluginManager extends SpringBootPluginManager {
...
}
and I got this error:
Caused by: java.lang.ClassCastException: class org.mypackage.CustomPluginManager cannot be cast
to class org.laxture.sbp.SpringBootPluginManager (org.mypackage.CustomPluginManager is in
unnamed module of loader 'app'; org.laxture.sbp.SpringBootPluginManager is in unnamed module
of loader org.pf4j.PluginClassLoader @69228e85)
How can I define a CustomPluginManager that extends SpringBootPluginManager?
The text was updated successfully, but these errors were encountered:
org.laxture.sbp.SpringBootPluginManager is in unnamed module of loader org.pf4j.PluginClassLoader
this doesn't smell good, SpringBootPluginManager should be loaded by main classLoader. I will fork your poc project to demonstrate it and come back with a PR later.
Ok, you're very kind helping me. Yesterday I submitted in poc project also the branch feature/plugin-loader-for-springboot with an attempt to extend JarPluginLoader for executable springboot jar, but it suffers for the issue linked to SpringBootPluginManager override.
I've tried to define a custom plugin manager
and I got this error:
How can I define a CustomPluginManager that extends
SpringBootPluginManager
?The text was updated successfully, but these errors were encountered: