org.springframework.context.event

Interface EventListenerFactory

    • Method Detail

      • supportsMethod

        boolean supportsMethod(java.lang.reflect.Method method)
        Specify if this factory supports the specified Method.
        Parameters:
        method - an EventListener annotated method
        Returns:
        true if this factory supports the specified method
      • createApplicationListener

        ApplicationListener<?> createApplicationListener(java.lang.String beanName,
                                                         java.lang.Class<?> type,
                                                         java.lang.reflect.Method method)
        Create an ApplicationListener for the specified method.
        Parameters:
        beanName - the name of the bean
        type - the target type of the instance
        method - the EventListener annotated method
        Returns:
        an application listener, suitable to invoke the specified method