nimbus (1.2.4) | 2018-01-25 20:02 |
nimbus-sample (1.2.4) | 2018-01-26 17:06 |
jp.ossc.nimbus.service.aop.DefaultInterceptorChainFactoryServiceは、指定されたキー文字列に合致するInterceptorChainを取得するInterceptorChainFactory実装サービスです。
このサービスは、複合的なサービスで、以下のサービスを下位サービスとして使用します。
下位サービスインタフェース | 用途 |
jp.ossc.nimbus.service.aop.InterceptorChainList | インターセプタを連ねるチェインリスト。 |
以下に簡単なサービス定義を示します。
- <?xml version="1.0" encoding="Shift_JIS"?>
- <!DOCTYPE server PUBLIC
- "-//Nimbus//DTD Nimbus 1.0//JA"
- "http://nimbus.sourceforge.jp/dtd/nimbus-service_1_0.dtd">
- <server>
- <manager>
- <!-- InterceptorChainListを振り分けるInterceptorChainListサービス -->
- <service name="InterceptorChainFactory"
- code="jp.ossc.nimbus.service.aop.DefaultInterceptorChainFactoryService">
- <!-- キーに該当するInterceptorChainListサービスのサービス名を設定する -->
- <attribute name="InterceptorChainListMapping">
- hoge=#HogeInterceptorChainList
- fuga=#FugaInterceptorChainList
- </attribute>
- <!-- キーに該当しない場合に適用するInterceptorChainListサービスのサービス名を設定する -->
- <attribute name="DefaultInterceptorChainListServiceName">#DefaultInterceptorChainList</attribute>
- </service>
- <!-- インターセプタを連ねる順序を示すInterceptorChainListサービス -->
- <service name="HogeInterceptorChainList"
- code="jp.ossc.nimbus.service.aop.DefaultInterceptorChainListService">
- <attribute name="InterceptorServiceNames">
- #MethodMetricsInterceptor
- </attribute>
- <depends>MethodMetricsInterceptor</depends>
- </service>
- <!-- インターセプタを連ねる順序を示すInterceptorChainListサービス -->
- <service name="FugaInterceptorChainList"
- code="jp.ossc.nimbus.service.aop.DefaultInterceptorChainListService">
- <attribute name="InterceptorServiceNames">
- #MethodSynchronizeInterceptor
- </attribute>
- <depends>MethodSynchronizeInterceptor</depends>
- </service>
- <!-- インターセプタを連ねる順序を示すInterceptorChainListサービス -->
- <service name="DefaultInterceptorChainList"
- code="jp.ossc.nimbus.service.aop.DefaultInterceptorChainListService">
- <attribute name="InterceptorServiceNames">
- #MethodMetricsInterceptor
- #MethodSynchronizeInterceptor
- </attribute>
- <depends>MethodMetricsInterceptor</depends>
- <depends>MethodSynchronizeInterceptor</depends>
- </service>
- <service name="MethodMetricsInterceptor"
- code="jp.ossc.nimbus.service.aop.interceptor.MethodMetricsInterceptorService"/>
- <service name="MethodSynchronizeInterceptor"
- code="jp.ossc.nimbus.service.aop.interceptor.MethodSynchronizeInterceptorService"/>
- </manager>
- </server>