// 下階層用テンプレート
#topicpath
----
//ここにコンテンツを記述します。


 <bean id="txBeanNameProxyCreator"
     class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
   <property name="interceptorNames">
     <list>
       <value>txInterceptor</value>
     </list>
   </property>
   <property name="beanNames">
     <list>
     <value>*BL</value>
     </list>
   </property>
 </bean>
とすると、クラス名が*BLのものに対してtxInterceptorが適用されますが((たとえばトランザクション管理を宣言的に埋め込むとか))、↓のクラスは適用外みたいです。。

 <bean id="auth.bl.impl.AuthorizeBL"  <-*BLにマッチするけど
     class="org.springframework.aop.framework.ProxyFactoryBean">
   <property name="proxyInterfaces">
     <value>auth.bl.IAuthorizeBL</value>
   </property>
   <property name="target">
     <ref bean="auth.bl.impl.AuthorizeBLTarget"/>
   </property>
   <property name="interceptorNames">
     <list>
       <value>loggingInterceptor</value>
     </list>
   </property>
 </bean>
クラスがorg.springframework.aop.framework.ProxyFactoryBeanとかになってるモノは除外、とかになってるのでしょうか。


----
この記事は
#vote(おもしろかった,そうでもない)

#comment
#topicpath


SIZE(10){現在のアクセス:&counter;}

トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS