You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Rice Yeh (JIRA)" <ji...@apache.org> on 2007/03/02 04:33:50 UTC

[jira] Created: (COCOON-2018) Use thread context class loader to load custom binding classes

Use thread context class loader to load custom binding classes
--------------------------------------------------------------

                 Key: COCOON-2018
                 URL: https://issues.apache.org/jira/browse/COCOON-2018
             Project: Cocoon
          Issue Type: Bug
          Components: Blocks: Forms
    Affects Versions: 2.2-dev (Current SVN)
            Reporter: Rice Yeh


Hi,
  In current implementation of org.apache.cocoon.forms.binding.CustomJXPathBindingBuilder, Class.forName() method is used to load custom binding classes. Class.forName(classname) method uses the the defining class loader of the current class to load class, which is the classloader that loads CustomJXPathBindingBuilder. In order to allow custom building classes that are not defined by the same classloader as cforms (this is needed in classes reloading application), it is suggested to have CustomJXPathBindingBuilder use thread context class loader to load custom binding classes.

Rice

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COCOON-2018) Use thread context class loader to load custom binding classes

Posted by "Rice Yeh (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COCOON-2018?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rice Yeh updated COCOON-2018:
-----------------------------

    Attachment: CustomJXPathBindingBuilder.java.patch

> Use thread context class loader to load custom binding classes
> --------------------------------------------------------------
>
>                 Key: COCOON-2018
>                 URL: https://issues.apache.org/jira/browse/COCOON-2018
>             Project: Cocoon
>          Issue Type: Bug
>          Components: Blocks: Forms
>    Affects Versions: 2.2-dev (Current SVN)
>            Reporter: Rice Yeh
>         Attachments: CustomJXPathBindingBuilder.java.patch
>
>
> Hi,
>   In current implementation of org.apache.cocoon.forms.binding.CustomJXPathBindingBuilder, Class.forName() method is used to load custom binding classes. Class.forName(classname) method uses the the defining class loader of the current class to load class, which is the classloader that loads CustomJXPathBindingBuilder. In order to allow custom building classes that are not defined by the same classloader as cforms (this is needed in classes reloading application), it is suggested to have CustomJXPathBindingBuilder use thread context class loader to load custom binding classes.
> Rice

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.