2004-08-01から1ヶ月間の記事一覧

Predicate Dispatch and Named Advice

AOP

(named advice は公式な用語でないと思うけれど・・・) Predicate Dispatch と名前のついたアドバイスとの関係は? 何か関係がありそうな気がする。ネタ元(といっても関係の答えが書いているわけでなく predicate dispatch の話が書いている): Todd Millst…

beforeadviceexecution, afteradviceexecution, and aroundadviceexecution

AOP

すげえ読みにくいけど、BeforeAdviceExecution, AfterAdviceexEcution と AroundAdviceExecution のこと。現在の AspectJ では、adviceexecution だけしか用意されていない。これは、なかなか面倒なことになりうると思う。詳しくは僕もまだもやもやしてるの…

Advice Reusability and Named Advice

AOP

名前つきアドバイスはなぜ必要か? たとえば: public class Point { private int x; private int y; public Point(int x, int y) { this.x = x; this.y = y; } public void setX(int x) { this.x = x; } public void setY(int y) { this.y = y; } }public as…

Inter-type Pointcuts

AOP

inter-type 宣言(or オープンクラス [1])が面白いのは、外部から、特定のモジュールを変更できること。AspectJ では、たとえば、外部からあるクラスにあるインタフェースを implements させたり、あるいは、外部からクラスに特定のメソッドやフィールドを…