[ 
https://issues.apache.org/jira/browse/WICKET-126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jean-Baptiste Quenot updated WICKET-126:
----------------------------------------

    Fix Version/s:     (was: trunk)
                   1.3.0-beta1

> Reload Java Classes for Improved Developer Experience
> -----------------------------------------------------
>
>                 Key: WICKET-126
>                 URL: https://issues.apache.org/jira/browse/WICKET-126
>             Project: Wicket
>          Issue Type: New Feature
>          Components: wicket
>            Reporter: Jean-Baptiste Quenot
>            Assignee: Jean-Baptiste Quenot
>             Fix For: 1.3.0-beta1, 2.0 branch (discontinued)
>
>         Attachments: 20061129-wicket-1.x-ReloadingClassLoader, 
> 20061130-wicket-1.x-ReloadingClassLoader, 
> 20061130-wicket-1.x-ReloadingClassLoader, 
> 20061201-wicket-1.x-ReloadingClassLoader, 
> 20061203-wicket-1.x-ReloadingClassLoader-includes, 
> 20061203-wicket-1.x-ReloadingClassLoader-includes, 
> 20061205-wicket-1.x-ReloadingClassLoader, 
> 20070114-wicket-1.x-ReloadingWicketFilter, 
> 20070114-wicket-1.x-ReloadingWicketFilter, 
> 20070114-wicket-1.x-ReloadingWicketFilter, 
> 20070114-wicket-1.x-ReloadingWicketFilter, WICKET-126-1.x.patch, 
> WICKET-126-trunk.patch
>
>
> Currently in Wicket it is possible to reload the templates in DEVELOPMENT 
> mode, but it is not possible to reload Java classes.  That makes it very 
> painful for the developer, as a server restart is required every time.  One 
> can still use hot code replace within the debugger, but that is not reliable 
> and does not work every time, especially when the method signatures change.
> The attached *experimental* patch addresses that issue by providing a custom 
> classloader and an adaptation of WicketFilter to allow reloading the Wicket 
> application upon a class file change.    As soon as a Java class is updated 
> in the classes directories, the corresponding application is reloaded by 
> WicketFilter.  Also, bookmarkable pages are properly reloaded.
> On the TODO list:
> * allow to switch off class reloading
> * allow to specify the location of directories containing class files
> * porting to WicketServlet
> * more testing
> I wanted to share this code ASAP for you to test.  It is based on branch 1.x.
> Note that part of the code comes from Apache Cocoon, released under the 
> Apache license.

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

Reply via email to