タグ

関連タグで絞り込む (2)

タグの絞り込みを解除

aopとGuiceに関するt_43zのブックマーク (2)

  • google guiceのAOPで一括設定 - ぼそっと

    唐突にgoogle guiceでなんなのですが。 google guiceのAOPというと、私の勝手なイメージですが、 http://docs.google.com/View?docid=dd2fhx4z_5df5hw8 上記のユーザーズガイドの「Intercepting Methods」の項にあるサンプルコードの、 binder.bindInterceptor( any(), annotatedWith(Transactional.class), new TransactionInterceptor() );にあるようなイメージです。ようするに、 @Retention(RetentionPolicy.RUNTIME) @Target({ ElementType.METHOD }) @BindingAnnotation public @interface CalledLogging { /

    google guiceのAOPで一括設定 - ぼそっと
  • wicket-guiceでAOP - Yamkazu's Blog

    wicket-guiceでDIのサンプルはよく見るのですが、AOPをやってるサンプルはあまり見たことないのでやってみた。 このエントリーを参考にやらせていただきました。ありがとうございます。 下準備 wicket-guideでただ「HelloWorld!」を表示するだけのアプリです。これをもとにAOPの設定をしたいと思います。 public class WicketApplication extends WebApplication { public WicketApplication() { } public Class getHomePage() { return HomePage.class; } @Override protected void init() { addComponentInstantiationListener(new GuiceComponentInjector

    wicket-guiceでAOP - Yamkazu's Blog
  • 1