[ 
https://issues.apache.org/jira/browse/PIVOT-687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13003949#comment-13003949
 ] 

Sandro Martini commented on PIVOT-687:
--------------------------------------

After this (first version), I'm thinking to use an approach like mine 
(described earlier, used in production some year ago) ... like in 
BXMLSerializer, add a get/setClassloader(), and if not set (default null) the 
behavior is like today (pre-first fix), otherwise using the given Classloader. 
Ok ?

And last, I've found uses in other Pivot sources of the Java forName() method 
to dynamically load classes, so maybe we can think to wrap the dynamic load 
(and related optional Classloader), as a dedicated Class, and use it where 
needed (like here) ... comments ?

Bye,
Sandro

> BXMLSerializer, would like to be able to specify a classloader for loading 
> custom components
> --------------------------------------------------------------------------------------------
>
>                 Key: PIVOT-687
>                 URL: https://issues.apache.org/jira/browse/PIVOT-687
>             Project: Pivot
>          Issue Type: Improvement
>          Components: core-beans
>    Affects Versions: 2.0
>         Environment: all
>            Reporter: GBivins
>            Assignee: Sandro Martini
>             Fix For: 2.0.1
>
>         Attachments: patch.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to