[Seasar-user:17344] Re: Seasar[複数Interceptorの使い方]

thomas [E-MAIL ADDRESS DELETED]
2009年 4月 29日 (水) 22:10:38 JST


小林 さん。
ジョンです、

Thanks for your reply.

I got the solution with the following dicon file

*Customizer.dicon
:::::::::::::::::::::::::::
*<initMethod name="addCustomizer">
    <arg>
      <component
class="org.seasar.framework.container.customizer.AspectCustomizer">
        <initMethod name="addInterceptorName">
          <arg>"LoginAuthInterceptor"</arg>
        </initMethod>
       <property name="pointcut">"do.*, initialize, prerender"</property>
      </component>
    </arg>
</initMethod>
  <initMethod name="addCustomizer">
    <arg>
      <component
class="org.seasar.framework.container.customizer.AspectCustomizer">
        <initMethod name="addInterceptorName">
          <arg>"LoginUserInterceptor"</arg>
        </initMethod>
       <property name="pointcut">"do.*, initialize, prerender"</property>
  <initMethod name="addIgnoreClassPattern">
    <arg>"pmtool.web.expensesheet"</arg>
    <arg>"Index.*"</arg>
  </initMethod>
  <initMethod name="addIgnoreClassPattern">
    <arg>"pmtool.web.menu"</arg>
    <arg>"Menu.*"</arg>
  </initMethod>
     </component>
    </arg>
</initMethod>
     <initMethod name="addIgnoreClassPattern">
    <arg>"pmtool.web.login"</arg>
    <arg>"LoginPage"</arg>
  </initMethod>
    <initMethod name="addIgnoreClassPattern">
    <arg>"pmtool.web.error"</arg>
    <arg>"Error.*"</arg>
  </initMethod>
  <initMethod name="addIgnoreClassPattern">
    <arg>"pmtool.web.exception"</arg>
    <arg>"Login.*"</arg>
  </initMethod>





2009/4/29 Koichi Kobayashi <[E-MAIL ADDRESS DELETED]>

> 小林 (koichik) です.
>
> Date:    Wed, 29 Apr 2009 19:28:44 +0900
> From:    thomas <[E-MAIL ADDRESS DELETED]>
> To:      [E-MAIL ADDRESS DELETED]
> Subject: [Seasar-user:17341] Re: Seasar[複数Interceptorの使い方]
>
> > My requirement is,
> >  For menu画面*LoginAuthInterceptor *is needed*  *where as
> *LoginUserInterceptor
> > *is not needed.For this situation how can i change this dicon file.
>
> See the customizer.dicon in [Seasar-user:17339].
>
> A point is to use addCustomizer rather than
> addAspectCustomizer.
> You can specify addIgnorePattern(s) for each customizer.
>
>
> --
> <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 mailing list
> [E-MAIL ADDRESS DELETED]
> https://ml.seasar.org/mailman/listinfo/seasar-user
>
-------------- next part --------------
HTMLの添付ファイルを保管しました...
URL: <http://ml.seasar.org/archives/seasar-user/attachments/20090429/34748aee/attachment.html>


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