pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "GBivins (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Edited] (PIVOT-687) BXMLSerializer, would like to be able to specify a classloader for loading custom components
Date Sat, 18 Jun 2011 15:29:49 GMT

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

GBivins edited comment on PIVOT-687 at 6/18/11 3:28 PM:
--------------------------------------------------------

Hi guys, my initial tests with the trunk code seem to work as I originally expected...By that
I mean, because of the way netbeans classloading works:
 
( http://bits.netbeans.org/dev/javadoc/org-openide-modules/org/openide/modules/doc-files/classpath.html#loader-hier)

I don't need any special handling of setting the classloader to load bxml and referenced resources.

If I understand the changes to how BXMLSerializer works now, it is looking to load resources
on the current threads context classloader.
In a netbeans app, that is the expected behavoir (see link below for details):
http://bits.netbeans.org/dev/javadoc/org-openide-modules/org/openide/modules/doc-files/classpath.html#syscl


I'll will run some more tests later this afternoon but so far, the current fixes seem to be
the way to go, at least from the NBP side of things!
;)

      was (Author: gbivins):
    Hi guys, my initial tests with the trunk code seem to work as I originally expected...By
that I mean, because of the way netbeans classloading works:
 
( http://bits.netbeans.org/dev/javadoc/org-openide-modules/org/openide/modules/doc-files/classpath.html#loader-hier
)

I don't need any special handling of setting the classloader to load bxml and referenced resources.

If I understand the changes to how BXMLSerializer works now, it is looking to load resources
on the current threads context classloader.
In a netbeans app this is the expected behavoir:
http://bits.netbeans.org/dev/javadoc/org-openide-modules/org/openide/modules/doc-files/classpath.html#syscl


I'll will run some more tests later this afternoon but so far, the current fixes seem to be
the way to go, at least from the NBP side of things!
;)
  
> 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, patch2.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

        

Mime
View raw message