javax.servlet
インタフェース ServletContextAttributeListener

すべてのスーパーインタフェース:
EventListener

public interface ServletContextAttributeListener
extends EventListener

このインターフェースをもとに、WebアプリケーションにあるServletコンテキストが保持している属性リストの変更に関する通知を受け取る処理を実装していきます。 通知したイベントを受け取るには、実装したクラス名をWebアプリケーションの配備記述子として設定しなければいけません。

導入されたバージョン:
v 2.3
関連項目:
ServletContextAttributeEvent

メソッドの概要
 void attributeAdded(ServletContextAttributeEvent scab)
          Servletコンテキストに新しい属性が追加されたことを通知します。
 void attributeRemoved(ServletContextAttributeEvent scab)
          Servletコンテキストから既存の属性が削除されたことを通知します。
 void attributeReplaced(ServletContextAttributeEvent scab)
          Servletコンテキストに保持されている属性が別の属性に置換されたことを通知します。
 

メソッドの詳細

attributeAdded

public void attributeAdded(ServletContextAttributeEvent scab)
Servletコンテキストに新しい属性が追加されたことを通知します。属性が追加された後に呼び出されます。


attributeRemoved

public void attributeRemoved(ServletContextAttributeEvent scab)
Servletコンテキストから既存の属性が削除されたことを通知します。属性が削除された後に呼び出されます。


attributeReplaced

public void attributeReplaced(ServletContextAttributeEvent scab)
Servletコンテキストに保持されている属性が別の属性に置換されたことを通知します。別の属性に置換された後に呼び出されます。



このドキュメントは、Ja-Jakarta Project により翻訳されました。コメントがある場合は、jajakarta-report@jajakarta.good-day.netまでお願いします。

Copyright © 1999-2002 The Apache Software Foundation. All Rights Reserved.