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

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

问题描述

我喜欢玩!.与其他企业 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 compiled 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 框架如何运作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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