これは Play! framework Advent Calendar 2011 jp の12月12日のブログです。 ※日付変わっているとかは気にしない! Play!ではJavaのソースコードを内部でコンパイルしていると聞いたので ちょっと読んで試してみました。 さくっと見たところ、Play! でコンパイル処理している箇所は2カ所ほどあり、 (1)Javaファイルをコンパイルするとき (2)テンプレートファイルをGroovy でコンパイルする時でそれぞれ使っているコンパイラとクラスローダが違います。 で(1)で使っているコンパイラですが、これは play.classloading.ApplicationCompiler を使っているようです。 これはEclipseのJDTコンパイラを利用してコンパイルしているっぽいです。 Play!内部での使い方はだいたい以下の通りです。 【用意するもの】
Play! framework is a revolutionary new approach to building Web applications in Java and Scala. With Play!, there's no more waiting for compilation, packaging, and redeployment after every code change. Just change your code and hit reload. Play! framework makes it fun and productive to build Web applications and do continuous delivery. Even better, you can choose either Java or Scala as your progr
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く