微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何从Tapestry 4迁移到5?

我有一个用Taspestry 4编写的遗留应用程序.

如何将它从Tapestry 4升级到Tapestry 5.3.8?

不幸的是,我以前从未有过Tapestry的经验.

我找不到任何迁移指南.我在互联网上找到的所有东西都是

Tapestry 5 did not even attempt to be backwards compatible to Tapestry
4. Instead,it laid the ground work for true backwards compatibility going forwards.

目前我刚发现注释:

import org.apache.tapestry.annotations.InjectObject;
import org.apache.tapestry.annotations.Persist;

可以替换为

import org.apache.tapestry5.ioc.annotations.Inject;
import org.apache.tapestry5.annotations.Persist;

另外我怎么摆脱hivemodule.xml?

我会感谢任何链接,文档或建议.

最佳答案
据我所知,没有简单的迁移可能.从tapestry website

There is no existing tool that supports upgrading from Tapestry 4 to
Tapestry 5; Tapestry 5 is a complete rewrite.

您可以通过构建一些会话共享服务来逐步升级/重写应用程序.免责声明:我从来没有尝试过这个,也没有在挂毯4和5之间看到它.我已经看到它从挂毯5迁移到wicket.所以从那个角度来看,如果你想远离挂毯4,你将不得不部分/完全重写.这就提出了一个问题,即你需要实现什么,而挂毯4无法做到这一点,并专注于如何最好地实现这一目标.

我知道这可能不是你所希望的答案.祝好运!

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐