Answering myself :)  This works, however I now need to use reflection to
call methods on my interface, as any casting to MountProvider triggers a
ClassCastException.  Reflection also seems to causing classloader issues
with objects being passed into Bundle B's methods.

On Wed, Apr 30, 2008 at 11:54 AM, Mark Derricutt <[EMAIL PROTECTED]> wrote:

>   Class activatorClass = bundle.loadClass(classname);
>   Class mountProviderClass =
> bundle.loadClass(MountProvider.class.getName());
>   if (mountProviderClass.isAssignableFrom(activatorClass)) {
>


-- 
"It is easier to optimize correct code than to correct optimized code." --
Bill Harlan

Reply via email to