JRebel和动态类加载 [英] JRebel and Dynamic Class Loading

查看:304
本文介绍了JRebel和动态类加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于JRebel和Java的Dynamic Class Laoding,我有几个问题.

例如,在一个servlet中,我可以在WEB-INF目录的classes目录中重新加载servlet类,这样,无论何时我更改类的内容,经过修改后,我都可以看到更改直接反映在我的Web应用程序中,而无需重新建立我的网络应用.

JRebel除了上面提到的内容以外还能提供什么?

解决方案

除了Java类重载之外,JRebel还为Java生态系统中的多种技术提供了集成.我的意思是与各种容器和框架集成.

需要与容器集成才能在Java EE世界中工作.例如,如果您想即时添加新的EJB.为了支持特定于框架的更改,JRebel附带了一些特殊的插件.例如,如果您想在Spring上下文中添加一个新bean并将其注入其他地方..或动态添加新的Struts操作...或在JSP scriplet中查看对Java类的更改.有很多功能列出

有关特定框架集成的完整列表,请参见网站

I have a few questions regarding JRebel and Java's Dynamic Class Laoding.

Say for example, In a servlet I can reload servlet classes in the classes directory of the WEB-INF directory such that any time I change the class's contents and after complation I can see the changes reflected straight in my web-app without re-building my web appliaction.

What does JRebel offer beyond what's mentioned above ?

解决方案

Besides Java class reloading JRebel provides the integration for the wide range of technologies in the Java ecosystem. By that I mean integration with all kind of containers and frameworks.

The integration with containers is needed in order to be able to work in the Java EE world. For instance if you want to add a new EJB on the fly. To support framework-specific changes there are special plugins incorporated with JRebel. For instance if you want to add a new bean in Spring context and get it injected somewhere else.. or add new Struts actions on the fly... or see the changes to your Java classes in JSP scriplet. There's a lot of features to list

The full list of the specific framework integrations is available on the website

这篇关于JRebel和动态类加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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