Wicket - 运行时类重新加载 [英] Wicket - runtime class reloading

查看:163
本文介绍了Wicket - 运行时类重新加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有古典投诉 - 重建和重新载入网络应用程序需要的时间太长。我想编译类(最好是从IDE)或更改一个静态文件,让服务器检查什么改变,并适当地行动(重新加载类/文件)。



我的选项是Wicket + JDK 1.6?我更喜欢Jetty,但是Tomcat,JBoss AS或其他都很好。



我不使用 ReloadingWicketFilter 因为我使用 mvn jetty:run-exploded ,因为它是用所需的配置运行我的应用程序的最简单的方法,并且jetty插件不支持使用。 / p>

感谢您,
Ondra

解决方案

Wicket在开发模式下通过添加这个初始化参数到Wicket的过滤器在web.xml:

 < init-param& 
< param-name> configuration< / param-name>
< param-value> development< / param-value>
< / init-param>

另一个生产力增强器是JRebel,它重新加载类文件更改(大多数)。 / p>

I have classical complaint - rebuilding and reloading the web app takes too long. I want to compile the classes (preferrably from the IDE) or change a static file and let the server check what changed and act approprietly (reload the class/file).

What are my options for Wicket + JDK 1.6 ? I'd prefer Jetty, but Tomcat, JBoss AS or others are good, too.

I am not using the ReloadingWicketFilter since I use mvn jetty:run-exploded because it's the simplest way to run my app with desired configuration, and jetty plugin does not (?) support using that.

Thanks, Ondra

解决方案

Be sure to configure Wicket in development mode by adding this init param to Wicket's filter in web.xml:

<init-param>
    <param-name>configuration</param-name>
    <param-value>development</param-value>
</init-param>

Another productivity booster is JRebel which reloads classfile changes (well, most of them) on the fly.

这篇关于Wicket - 运行时类重新加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆