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