PlayPluginのメソッドを試してみる 前回のPlay Moduleを作成してみる1では、シンプルなモジュールを作成してみました。 その時はアプリケーションの開始タイミングでメッセージの出力するだけでしたが、PlayPluginクラスではさまざまなタイミングでの処理を行うことができます。 今回はPlayPluginクラスのメソッドである「bind」と「onEvent」をオーバーライドして、もう少しためしてみましょう。 セットアップ 本記事での動作確認環境は下記の通りです。 OS : MacOS X 10.7.2 Java SE: 1.6.0_26 Play framework : 1.2.3 ※Play frameworkはインストールしてパスを通しておいてください。 Play Moduleを新たに作成 モジュールは複数同時に使用することもできるので、前回作成したMyModuleApp