Class DefinedIndexesApplicationListener
java.lang.Object
org.springframework.data.gemfire.config.support.DefinedIndexesApplicationListener
- All Implemented Interfaces:
EventListener
,ApplicationListener<ContextRefreshedEvent>
public class DefinedIndexesApplicationListener
extends Object
implements ApplicationListener<ContextRefreshedEvent>
DefinedIndexesApplicationListener
is a Spring ApplicationListener
used to create all
"defined" GemFire Indexes
by using the QueryService
,
defineXxxIndex(..) methods.- Since:
- 1.7.0
- Author:
- John Blum
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
Attempts to create all definedIndexes
using theQueryService
, defineXxxIndex(..) API once the SpringApplicationContext
has been refreshed.- Specified by:
onApplicationEvent
in interfaceApplicationListener<ContextRefreshedEvent>
- Parameters:
event
-ContextRefreshedEvent
fired when the SpringApplicationContext
gets refreshed.- See Also:
-
ContextRefreshedEvent
QueryService.createDefinedIndexes()
getQueryService(ContextRefreshedEvent)
-