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:
-
ApplicationContext
ApplicationListener
ContextRefreshedEvent
QueryService
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onApplicationEvent
(org.springframework.context.event.ContextRefreshedEvent event) Attempts to create all definedIndexes
using theQueryService
, defineXxxIndex(..) API once the SpringApplicationContext
has 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 definedIndexes
using theQueryService
, defineXxxIndex(..) API once the SpringApplicationContext
has been refreshed.- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
- Parameters:
event
-ContextRefreshedEvent
fired when the SpringApplicationContext
gets refreshed.- See Also:
-
ContextRefreshedEvent
QueryService.createDefinedIndexes()
getQueryService(ContextRefreshedEvent)
-