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 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 defined Indexes using the QueryService, defineXxxIndex(..) API once the Spring ApplicationContext has been refreshed.
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
      Parameters:
      event - ContextRefreshedEvent fired when the Spring ApplicationContext gets refreshed.
      See Also:
      • ContextRefreshedEvent
      • QueryService.createDefinedIndexes()
      • getQueryService(ContextRefreshedEvent)