Problem Statement: Locate a resource (let say myClass) in Bundle A and load it, if not found Locate resource in Bundle B and load it pro grammatically, While the control is in Bundle C. I have a reference to ClassLoaders of both A and B bundle.
What I know is: For every OSGi bundle the parent classLoader is Bundle 0's class loader. and the System bla bla
Will it be ok If I change the parent of CL of bundle B ---to--> CL of bundle A. and getClass from CL of bundle B ?
will it be under best practices ?
Restrictions: do not use import, export, require statements for solution.
Thanks