Java EE的架构框架播放 [英] Java EE architecture with Play Framework

查看:168
本文介绍了Java EE的架构框架播放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能重现的Java EE架构玩?通过Java EE的我的意思是这4个层次:视图,控制器,服务,模式

Is it possible to reproduce a Java EE architecture with Play? By Java EE I mean these 4 layers: view, controller, service, model.

我知道玩只使用基于MVC一个更好的架构,我爱这一个,但我必须使用Java EE架构为特定的项目,我想使用播放认为它是从我的观点最好的Java框架的看法。

I know play use a better architecture only based on MVC, and I love this one, but I must use a Java EE architecture for a specific project and I'd like to use Play considering it's the best Java framework from my point of view.

推荐答案

您可以用弹簧组件与游戏结合春季和使用它的服务/模型层:的 http://www.playframework.org/modules/spring

You can use spring module to integrates spring with play and use it for the service/model layers : http://www.playframework.org/modules/spring

或者你可以简单地创建控制器和模型之间的业务层和自己使用的一些模式(单,工厂,...),以线控制器与这些服务

Or you can simply create a Service layer between Controllers and Model and use some patterns by yourself (singleton, factory, ...) to wire controllers with these services

这篇关于Java EE的架构框架播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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