Spring Data for VMware GemFire
Class DefinedIndexesApplicationListener
java.lang.Object
org.springframework.data.gemfire.config.support.DefinedIndexesApplicationListener
- All Implemented Interfaces:
EventListener,org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
public class DefinedIndexesApplicationListener
extends Object
implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
DefinedIndexesApplicationListener is a Spring ApplicationListener used to create all
"defined" GemFire Indexes by using the QueryService,
defineXxxIndex(..) methods.- Since:
- 1.7.0
- See Also:
-
ApplicationContextApplicationListenerContextRefreshedEventQueryService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) Attempts to create all definedIndexesusing theQueryService, defineXxxIndex(..) API once the SpringApplicationContexthas been refreshed.
-
Field Details
-
logger
protected final org.slf4j.Logger logger
-
-
Constructor Details
-
DefinedIndexesApplicationListener
public DefinedIndexesApplicationListener()
-
-
Method Details
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) Attempts to create all definedIndexesusing theQueryService, defineXxxIndex(..) API once the SpringApplicationContexthas been refreshed.- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>- Parameters:
event-ContextRefreshedEventfired when the SpringApplicationContextgets refreshed.- See Also:
-
ContextRefreshedEventQueryService.createDefinedIndexes()getQueryService(ContextRefreshedEvent)
-