That is an interesting problem. There's currently no way to pass a ClassLoader 
to BXMLSerializer. I was going to suggest that you create a custom subclass of 
BXMLSerializer that overrides newTypedObject(), but that won't work - 
newTypedObject() takes a Class<?> instance, and you would need a String.

Definitely something that should be fixed - would you mind creating a JIRA 
ticket for this?

Thanks,
Greg

On Dec 16, 2010, at 6:55 PM, Gerrick Bivins wrote:

> Hello all,
> I'm running into issues trying to load my pivot window into a swing 
> application. Some background,
> since pivot 2.0 can load components into a swing application, I've been 
> trying to integrate pivot into a netbeans platform application.
> Only been at it a couple of hours but I'm stuck on an class loader issue. 
> Basically, because I have pivot wrapped in separate module it's classloader
> can't references classes in any modules that depend on it. See here:
> http://bits.netbeans.org/dev/javadoc/org-openide-modules/org/openide/modules/doc-files/classpath.html#loader-hier
> 
> I looked briefly in the docs but I'm not sure if I missed a readObject() 
> signature that will allow me to pass in the classloader to use when 
> de-serializing.
> Thanks for any info/help here.
> Gerrick

Reply via email to