nimbus (1.2.4) | 2018-01-25 20:02 |
nimbus-sample (1.2.4) | 2018-01-26 17:06 |
jp.ossc.nimbus.service.aop.interceptor.ExceptionThrowInterceptorServiceは、例外を発生させるInterceptor実装サービスです。
以下に簡単なサービス定義を示します。
- <?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>
- <!-- 例外を発生させるInterceptorサービス -->
- <service name="ExceptionThrowInterceptor"
- code="jp.ossc.nimbus.service.aop.interceptor.ExceptionThrowInterceptorService">
- <!-- 発生させる例外のクラス名を設定する -->
- <attribute name="ExceptionClassName">java.lang.UnsupportedOperationException</attribute>
- <!-- 発生させる例外のメッセージを設定する -->
- <attribute name="Message">このメソッドは呼び出してはいけません。</attribute>
- </service>
- </manager>
- </server>