Play Framework如何运作? [英] How does the Play Framework function?

查看:121
本文介绍了Play Framework如何运作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢玩!与其他企业Java框架相比,开发人员使用起来非常简单。
但是,它是如何做到的?使用像Java这样的编译语言可以使编辑 - 刷新周期成为可能?是什么让Play!按照它的工作方式工作?

I love Play!. Compared to other enterprise Java frameworks, it's incredibly simple for the developer to use. But, how does it do that? What makes the edit-refresh cycle possible with a compile language like Java? What makes Play! work the way it works?

推荐答案

Play使用Eclipse编译器在运行时编译代码。

Play uses the Eclipse compiler to compile code at run-time.

查看以下类,Play使用该类在运行时执行必要的编译。

Take a look at the following class, that is used by Play to perform the necessary compilation at run time.

https://github.com/playframework/play/blob/master/framework/src/ play / classloading / ApplicationCompiler.java

这篇关于Play Framework如何运作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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