Search in sources :

Example 1 with SearchService

use of com.salesmanager.core.business.services.search.SearchService in project shopizer by shopizer-ecommerce.

the class ApplicationContextListenerUtils method onApplicationEvent.

@Override
public void onApplicationEvent(ContextStartedEvent event) {
    ApplicationContext applicationContext = event.getApplicationContext();
    /**
     * init search service *
     */
    SearchService searchService = (SearchService) applicationContext.getBean("productSearchService");
    searchService.initService();
}
Also used : ApplicationContext(org.springframework.context.ApplicationContext) SearchService(com.salesmanager.core.business.services.search.SearchService)

Aggregations

SearchService (com.salesmanager.core.business.services.search.SearchService)1 ApplicationContext (org.springframework.context.ApplicationContext)1