类 ElasticsearchApplicationListener

  • 所有已实现的接口:
    EventListener, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>

    public class ElasticsearchApplicationListener
    extends Object
    implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.context.ApplicationContextAware
    从以下版本开始:
    2021/5/2
    作者:
    Ranger
    • 字段详细资料

      • applicationContext

        private org.springframework.context.ApplicationContext applicationContext
    • 构造器详细资料

      • ElasticsearchApplicationListener

        public ElasticsearchApplicationListener()
    • 方法详细资料

      • onApplicationEvent

        public void onApplicationEvent​(org.springframework.context.event.ContextRefreshedEvent contextRefreshedEvent)
        指定者:
        onApplicationEvent 在接口中 org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        指定者:
        setApplicationContext 在接口中 org.springframework.context.ApplicationContextAware
        抛出:
        org.springframework.beans.BeansException