Spring/インタセプターを使う
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
// 下階層用テンプレート
#topicpath
----
//ここにコンテンツを記述します。
<bean id="txBeanNameProxyCreator"
class="org.springframework.aop.framework.autoproxy.B...
<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.ProxyFactor...
<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.ProxyFactoryBea...
----
この記事は
#vote(おもしろかった[2],そうでもない[1])
#comment
#topicpath
SIZE(10){現在のアクセス:&counter;}
終了行:
// 下階層用テンプレート
#topicpath
----
//ここにコンテンツを記述します。
<bean id="txBeanNameProxyCreator"
class="org.springframework.aop.framework.autoproxy.B...
<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.ProxyFactor...
<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.ProxyFactoryBea...
----
この記事は
#vote(おもしろかった[2],そうでもない[1])
#comment
#topicpath
SIZE(10){現在のアクセス:&counter;}
ページ名: