[Seasar-user:15299] Re: CoolDeploy モードで@Componentアノテーションを使用した時の挙動

Koichi Kobayashi [E-MAIL ADDRESS DELETED]
2008年 8月 7日 (木) 17:30:25 JST


小林 (koichik) です.

Date:    Thu, 7 Aug 2008 07:56:47 +0900
From:    黒川博之 <[E-MAIL ADDRESS DELETED]>
To:      <[E-MAIL ADDRESS DELETED]>
Subject: [Seasar-user:15293] Re: CoolDeploy モードで@Componentアノテーションを使用した時の挙動

> addIgnoreClassPatternで、LoginActionを追加しようともしましたが
> そうすると、LoginAction自体に他のaspectも設定されなくなってしまう
> ため、上記のように変更しました。

CustomizerChain ではなく,AspectCustomizer の
addIgnoreClassPattern を使ってください.

<component name="actionCustomizer" 
    class="org.seasar.framework.container.customizer.CustomizerChain">
  <initMethod name="addCustomizer">
    <arg>
      <component class="org.seasar.framework.container.customizer.AspectCustomizer">
        <property name="useLookupAdapter">true</property>
        <property name="interceptorName">"loginInterceptor"</property>
        <initMethod name="addIgnoreClassPatterh">
          <arg>"..."</arg>
          <arg>"LoginAction"</arg>
        </initMethod>
      </component>
    </arg>
  </initMethod>
</component>


-- 
<component name="koichik">
    <property name="fullName">"Koichi Kobayashi"</property>
    <property name="email">"[E-MAIL ADDRESS DELETED]"</property>
    <property name="blog">"http://d.hatena.ne.jp/koichik"</property>
</component>



Seasar-user メーリングリストの案内