クラス DelegatingApplicationListener

  • 実装されたすべてのインターフェース:
    java.util.EventListenerorg.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>

    public final class DelegatingApplicationListener
    extends java.lang.Object
    implements org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
    多数の SmartApplicationListener インスタンスに委譲するために使用されます。これは、SmartApplicationListener を ApplicationContext にプログラムで登録する必要がある場合に役立ちます。
    • メソッドのサマリー

      すべてのメソッド   インスタンスメソッド   具象メソッド  
      修飾子と型 メソッド 説明
      voidaddListener​(org.springframework.context.event.SmartApplicationListener smartApplicationListener)
      使用する新しい SmartApplicationListener を追加します。
      voidonApplicationEvent​(org.springframework.context.ApplicationEvent event)
      • クラス java.lang.Object から継承されたメソッド

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • コンストラクターの詳細

      • DelegatingApplicationListener

        public DelegatingApplicationListener()
    • メソッドの詳細

      • onApplicationEvent

        public void onApplicationEvent​(org.springframework.context.ApplicationEvent event)
        次で指定:
        インターフェース org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>onApplicationEvent 
      • addListener

        public void addListener​(org.springframework.context.event.SmartApplicationListener smartApplicationListener)
        使用する新しい SmartApplicationListener を追加します。
        パラメーター:
        smartApplicationListener - 使用する SmartApplicationListener。null にすることはできません。