public class DefinedIndexesApplicationListener extends Object implements ApplicationListener<ContextRefreshedEvent>
DefinedIndexesApplicationListener
is a Spring ApplicationListener
used to create all
"defined" Pivotal GemFire Indexes
by using the QueryService
,
defineXxxIndex(..) methods.ApplicationContext
,
ApplicationListener
,
ContextRefreshedEvent
,
QueryService
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
Constructor and Description |
---|
DefinedIndexesApplicationListener() |
Modifier and Type | Method and Description |
---|---|
void |
onApplicationEvent(ContextRefreshedEvent event)
Attempts to create all defined
Indexes using
the QueryService , defineXxxIndex(..) |
public void onApplicationEvent(ContextRefreshedEvent event)
Indexes
using
the QueryService
, defineXxxIndex(..) API once the Spring ApplicationContext
has been refreshed.onApplicationEvent
in interface ApplicationListener<ContextRefreshedEvent>
event
- ContextRefreshedEvent
fired when the Spring ApplicationContext
gets refreshed.ContextRefreshedEvent
,
QueryService.createDefinedIndexes()
,
getQueryService(ContextRefreshedEvent)
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.