类 InterceptingApplicationEventMulticasterProxy

  • 所有已实现的接口:
    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
    从以下版本开始:
    1.0.0
    作者:
    Mercy
    另请参阅:
    ApplicationEventMulticaster
    • 字段详细资料

      • RESET_BEAN_NAME_PROPERTY_NAME

        public static final java.lang.String RESET_BEAN_NAME_PROPERTY_NAME
        The property name of the reset bean name of ApplicationEventMulticaster
        另请参阅:
        常量字段值
      • DEFAULT_RESET_BEAN_NAME

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

        The original bean name of ApplicationEventMulticaster is "applicationEventMulticaster"

        另请参阅:
        AbstractApplicationContext.APPLICATION_EVENT_MULTICASTER_BEAN_NAME, 常量字段值
    • 构造器详细资料

      • InterceptingApplicationEventMulticasterProxy

        public InterceptingApplicationEventMulticasterProxy​(org.springframework.core.env.Environment environment)
    • 方法详细资料

      • getResetBeanName

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

        public void addApplicationListener​(org.springframework.context.ApplicationListener<?> listener)
        指定者:
        addApplicationListener 在接口中 org.springframework.context.event.ApplicationEventMulticaster
      • addApplicationListenerBean

        public void addApplicationListenerBean​(java.lang.String listenerBeanName)
        指定者:
        addApplicationListenerBean 在接口中 org.springframework.context.event.ApplicationEventMulticaster
      • removeApplicationListener

        public void removeApplicationListener​(org.springframework.context.ApplicationListener<?> listener)
        指定者:
        removeApplicationListener 在接口中 org.springframework.context.event.ApplicationEventMulticaster
      • removeApplicationListenerBean

        public void removeApplicationListenerBean​(java.lang.String listenerBeanName)
        指定者:
        removeApplicationListenerBean 在接口中 org.springframework.context.event.ApplicationEventMulticaster
      • removeApplicationListeners

        public void removeApplicationListeners​(java.util.function.Predicate<org.springframework.context.ApplicationListener<?>> predicate)
        指定者:
        removeApplicationListeners 在接口中 org.springframework.context.event.ApplicationEventMulticaster
      • removeApplicationListenerBeans

        public void removeApplicationListenerBeans​(java.util.function.Predicate<java.lang.String> predicate)
        指定者:
        removeApplicationListenerBeans 在接口中 org.springframework.context.event.ApplicationEventMulticaster
      • removeAllListeners

        public void removeAllListeners()
        指定者:
        removeAllListeners 在接口中 org.springframework.context.event.ApplicationEventMulticaster
      • multicastEvent

        public void multicastEvent​(org.springframework.context.ApplicationEvent event)
        指定者:
        multicastEvent 在接口中 org.springframework.context.event.ApplicationEventMulticaster
      • multicastEvent

        public void multicastEvent​(org.springframework.context.ApplicationEvent event,
                                   org.springframework.core.ResolvableType eventType)
        指定者:
        multicastEvent 在接口中 org.springframework.context.event.ApplicationEventMulticaster
      • doPostProcessAfterInitialization

        protected org.springframework.context.ApplicationListener doPostProcessAfterInitialization​(org.springframework.context.ApplicationListener bean,
                                                                                                   java.lang.String beanName)
                                                                                            throws org.springframework.beans.BeansException
        从类复制的说明: GenericBeanPostProcessorAdapter
        Adapter BeanPostProcessor#postProcessAfterInitialization(Object, String) method , sub-type could override this method.
        覆盖:
        doPostProcessAfterInitialization 在类中 GenericBeanPostProcessorAdapter<org.springframework.context.ApplicationListener>
        参数:
        bean - Bean Object
        beanName - Bean Name
        返回:
        Bean Object
        抛出:
        org.springframework.beans.BeansException
        另请参阅:
        BeanPostProcessor.postProcessAfterInitialization(Object, String)
      • setTaskExecutor

        public void setTaskExecutor​(@Nullable
                                    java.util.concurrent.Executor taskExecutor)
      • getTaskExecutor

        protected java.util.concurrent.Executor getTaskExecutor()
      • setBeanFactory

        public void setBeanFactory​(org.springframework.beans.factory.BeanFactory beanFactory)
                            throws org.springframework.beans.BeansException
        指定者:
        setBeanFactory 在接口中 org.springframework.beans.factory.BeanFactoryAware
        抛出:
        org.springframework.beans.BeansException