Class InterceptingApplicationEventMulticasterProxy

java.lang.Object
io.microsphere.spring.beans.factory.config.GenericBeanPostProcessorAdapter<org.springframework.context.ApplicationListener>
io.microsphere.spring.context.event.InterceptingApplicationEventMulticasterProxy
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.context.event.ApplicationEventMulticaster

public class InterceptingApplicationEventMulticasterProxy extends GenericBeanPostProcessorAdapter<org.springframework.context.ApplicationListener> implements org.springframework.context.event.ApplicationEventMulticaster, org.springframework.beans.factory.BeanFactoryAware
Intercepting ApplicationEventMulticaster Proxy
Since:
1.0.0
Author:
Mercy
See Also:
  • ApplicationEventMulticaster
  • Field Details

    • RESET_BEAN_NAME_PROPERTY_NAME

      public static final String RESET_BEAN_NAME_PROPERTY_NAME
      The property name of the reset bean name of ApplicationEventMulticaster
      See Also:
    • DEFAULT_RESET_BEAN_NAME

      public static final String DEFAULT_RESET_BEAN_NAME
      The default reset bean name of ApplicationEventMulticaster.

      The original bean name of ApplicationEventMulticaster is "applicationEventMulticaster"

      See Also:
  • Constructor Details

    • InterceptingApplicationEventMulticasterProxy

      public InterceptingApplicationEventMulticasterProxy(org.springframework.core.env.Environment environment)
  • Method Details

    • getResetBeanName

      public static String getResetBeanName(org.springframework.core.env.Environment environment)
    • addApplicationListener

      public void addApplicationListener(org.springframework.context.ApplicationListener<?> listener)
      Specified by:
      addApplicationListener in interface org.springframework.context.event.ApplicationEventMulticaster
    • addApplicationListenerBean

      public void addApplicationListenerBean(String listenerBeanName)
      Specified by:
      addApplicationListenerBean in interface org.springframework.context.event.ApplicationEventMulticaster
    • removeApplicationListener

      public void removeApplicationListener(org.springframework.context.ApplicationListener<?> listener)
      Specified by:
      removeApplicationListener in interface org.springframework.context.event.ApplicationEventMulticaster
    • removeApplicationListenerBean

      public void removeApplicationListenerBean(String listenerBeanName)
      Specified by:
      removeApplicationListenerBean in interface org.springframework.context.event.ApplicationEventMulticaster
    • removeApplicationListeners

      public void removeApplicationListeners(Predicate<org.springframework.context.ApplicationListener<?>> predicate)
      Specified by:
      removeApplicationListeners in interface org.springframework.context.event.ApplicationEventMulticaster
    • removeApplicationListenerBeans

      public void removeApplicationListenerBeans(Predicate<String> predicate)
      Specified by:
      removeApplicationListenerBeans in interface org.springframework.context.event.ApplicationEventMulticaster
    • removeAllListeners

      public void removeAllListeners()
      Specified by:
      removeAllListeners in interface org.springframework.context.event.ApplicationEventMulticaster
    • multicastEvent

      public void multicastEvent(org.springframework.context.ApplicationEvent event)
      Specified by:
      multicastEvent in interface org.springframework.context.event.ApplicationEventMulticaster
    • multicastEvent

      public void multicastEvent(org.springframework.context.ApplicationEvent event, org.springframework.core.ResolvableType eventType)
      Specified by:
      multicastEvent in interface org.springframework.context.event.ApplicationEventMulticaster
    • doPostProcessAfterInitialization

      protected org.springframework.context.ApplicationListener doPostProcessAfterInitialization(org.springframework.context.ApplicationListener bean, String beanName) throws org.springframework.beans.BeansException
      Description copied from class: GenericBeanPostProcessorAdapter
      Adapter BeanPostProcessor#postProcessAfterInitialization(Object, String) method , sub-type could override this method.
      Overrides:
      doPostProcessAfterInitialization in class GenericBeanPostProcessorAdapter<org.springframework.context.ApplicationListener>
      Parameters:
      bean - Bean Object
      beanName - Bean Name
      Returns:
      Bean Object
      Throws:
      org.springframework.beans.BeansException
      See Also:
      • BeanPostProcessor.postProcessAfterInitialization(Object, String)
    • setTaskExecutor

      public void setTaskExecutor(@Nullable Executor taskExecutor)
    • getTaskExecutor

      protected Executor getTaskExecutor()
    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Throws:
      org.springframework.beans.BeansException