Interceptor実装サービス jp.ossc.nimbus.service.aop.interceptor.ExceptionThrowInterceptorService

jp.ossc.nimbus.service.aop.interceptor.ExceptionThrowInterceptorServiceは、例外を発生させるInterceptor実装サービスです。

以下に簡単なサービス定義を示します。

  1. <?xml version="1.0" encoding="Shift_JIS"?>
  2. <!DOCTYPE server PUBLIC
  3. "-//Nimbus//DTD Nimbus 1.0//JA"
  4. "http://nimbus.sourceforge.jp/dtd/nimbus-service_1_0.dtd">
  5. <server>
  6. <manager>
  7. <!-- 例外を発生させるInterceptorサービス -->
  8. <service name="ExceptionThrowInterceptor"
  9. code="jp.ossc.nimbus.service.aop.interceptor.ExceptionThrowInterceptorService">
  10. <!-- 発生させる例外のクラス名を設定する -->
  11. <attribute name="ExceptionClassName">java.lang.UnsupportedOperationException</attribute>
  12. <!-- 発生させる例外のメッセージを設定する -->
  13. <attribute name="Message">このメソッドは呼び出してはいけません。</attribute>
  14. </service>
  15. </manager>
  16. </server>


アスペクト指向/Interceptor