I don't know if that works. If I remember correctly, I already
proposed such a thing to OSGi people and I think they thought it
wasn't such a good idea.

Any OSGi people reading with us here?

Eelco


On 3/28/06, Alexei Sokolov <[EMAIL PROTECTED]> wrote:
> Hello,
>
> This is my first post here, so please don't yell at me
> right away...
>
> Anyway, I was wondering what you think about changing
> two places in wicket, both related to class loading.
>
> in ContextParamWebApplicationFactory:
>
> final Class applicationClass =
> getClass().getClassLoader().loadClass(
> applicationClassName);
>
> change to:
>
> final Class applicationClass =
> Thread.currentThread().getContextClassLoader().loadClass(
>                                 applicationClassName);
>
> and in DefaultClassResolver:
>
> change:
> return
> DefaultClassResolver.class.getClassLoader().loadClass(classname);
>
> to:
> return
> Thread.currentThread().getContextClassLoader().loadClass(classname);
>
> I don't think it'll brake anything in the existing
> apps, but the changes allow for easy integration with
> OSGi containers.
>
> Alexei
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Wicket-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-develop
>


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to