インターフェース EventListenerFactory

すべての既知の実装クラス:
DefaultEventListenerFactoryRestrictedTransactionalEventListenerFactoryTransactionalEventListenerFactory

public interface EventListenerFactory
EventListener アノテーションが付けられたメソッドの ApplicationListener を作成するための戦略インターフェース。
導入:
4.2
作成者:
Stephane Nicoll
  • メソッドの詳細

    • supportsMethod

      boolean supportsMethod(MethodSE method)
      このファクトリが指定された MethodSE をサポートするかどうかを指定します。
      パラメーター:
      method - EventListener アノテーション付きメソッド
      戻り値:
      このファクトリが指定されたメソッドをサポートする場合は true 
    • createApplicationListener

      ApplicationListener<?> createApplicationListener(StringSE beanName, ClassSE<?> type, MethodSE method)
      指定されたメソッドの ApplicationListener を作成します。
      パラメーター:
      beanName - Bean の名前
      type - インスタンスのターゲット型
      method - EventListener アノテーション付きメソッド
      戻り値:
      指定されたメソッドを呼び出すのに適したアプリケーションリスナー