2007年3月15日木曜日

Guice


内容はまだきちんと見ていないのでわからないにしても、AdWordsのようなビジネスクリティカルなところで使われているという点において、かなり訴求力がありそう。また、アノテーションによる記述だけに専念していて、XMLを使わないという点では興味深い。
また、パフォーマンスもかなりチューニングされているようで、Springの100倍。って、まあ、割り引き目に見た方がいいかもしれないけど・・・。

とりあえず、この辺りのコメントはとても興味深い
From our experience, most AOP frameworks are too powerful for most uses and don't carry their own conceptual weight. Guice builds method interception in at the core instead of as an afterthought. This hides the mechanics of AOP from the user and lowers the learning curve. Using one object instead of a separate proxy reduces memory waste and more importantly reduces the chances of invoking a method without interceptors. Under the covers, Guice uses a separate handler for each method minimizing performance overhead. If you intercept just one method in a class, the other methods will not incur overhead.

0 件のコメント: