Gluon J n 2 q q Service DAO

  • Slides: 16
Download presentation

Gluon. J のアスペクト n 大きく 2つの要素から構成 q q Service オブジェクトから DAO へのリンクの宣言 DAO の呼び出しの記述

Gluon. J のアスペクト n 大きく 2つの要素から構成 q q Service オブジェクトから DAO へのリンクの宣言 DAO の呼び出しの記述 n Aspect. J のポイントカット&ア ドバイスと似た記述 アスペクト (XML で記述) リンクの宣言 <aspect> <injection> DAO Author. Check. Service. aspect = DAO. factory (this. session. Id); </injection> <advice> <pointcut> execution ( void Author. Check. Service. check. Author. Info(. . )) </pointcut> <after> DAO. aspect. Of (this). post. Author ( this. firstname, this. lastname); </after> </advice> DAO の </aspect> 呼び出し SPA '05, Ikaho, Gunma 6

DAO の呼び出し n リンクしたDAO を呼び出す q Service オブジェクトのメソッド呼び出しのあとに、 DAO のメソッドを呼び出す Aspect. J のポイントカ ット&

DAO の呼び出し n リンクしたDAO を呼び出す q Service オブジェクトのメソッド呼び出しのあとに、 DAO のメソッドを呼び出す Aspect. J のポイントカ ット& アドバイスに似た 記述 aspect. Of メソッド: this と リンクする DAO オブジェクト を取得 <advice> <pointcut> execution (void Author. Check. Service. check. Author. Info(. . )) </pointcut> <after> DAO. aspect. Of (this). post. Author (this. firstname, this. lastname); </after> </advice> SPA '05, Ikaho, Gunma 8