public interface ServletContextAttributeListener extends EventListener
これらの通知イベントを受け取るには、実装クラスをWebアプリケーションのデプロイメントディスクリプターで宣言するか、
WebListenerアノテーションを付けるか、
ServletContextで定義されたaddListenerメソッドの1つを使用して登録する必要があります。
このインターフェースの実装が呼び出される順序は定義されていません。
ServletContextAttributeEvent| 修飾子とタイプ | メソッドと説明 |
|---|---|
default void |
attributeAdded(ServletContextAttributeEvent event)
ServletContextに属性が追加された通知を受け取ります。
|
default void |
attributeRemoved(ServletContextAttributeEvent event)
ServletContextから属性が削除された通知を受け取ります。
|
default void |
attributeReplaced(ServletContextAttributeEvent event)
ServletContextの属性が置き換えられた通知を受け取ります。
|
default void attributeAdded(ServletContextAttributeEvent event)
event - 属性が追加されたServletContextに追加で属性の名前と値を含んだServletContextAttributeEventdefault void attributeRemoved(ServletContextAttributeEvent event)
event - 属性が削除されたServletContextに追加で属性の名前と値を含んだServletContextAttributeEventdefault void attributeReplaced(ServletContextAttributeEvent event)
event - 属性が置き換えられたServletContextに追加で属性の名前と古い値を含んだServletContextAttributeEventCopyright © 1999-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms. Portions Copyright © 1999-2002 The Apache Software Foundation. Portions Copyright © 2017- @megascus. Translated by @megascus.