类 ElasticsearchApplicationListener
- java.lang.Object
-
- cc.vihackerframework.core.elasticsearch.config.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
-
-
字段概要
字段 修饰符和类型 字段 说明 private org.springframework.context.ApplicationContextapplicationContextprotected ElasticsearchServiceelasticsearchService
-
构造器概要
构造器 构造器 说明 ElasticsearchApplicationListener()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidonApplicationEvent(org.springframework.context.event.ContextRefreshedEvent contextRefreshedEvent)voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
-
-
字段详细资料
-
elasticsearchService
protected ElasticsearchService elasticsearchService
-
applicationContext
private org.springframework.context.ApplicationContext applicationContext
-
-
方法详细资料
-
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
-
-