Hi -
I have an application A that loads plugins (B). In turn B loads 'child plugins' (C). The problem I am facing is that the parent classloader for C is the system/app classloader. This doesn't work for me because C is dependent on classes loaded by B, so the parent classloader for C needs to be B.
App ----load-----> B ------load-------> C
I've tried extending DefaultPluginManager, and overriding createPluginWrapper method whereby I call super.createPluginWrapper with a different classloader (whose parent is B), but it fails because the plugin is not created.
Is there an official/better way to specify the parent classloader?
Regards,
Paul Stanley