public abstract class AbstractSearchEngineConfigurator extends Object implements SearchEngineConfigurator
Constructor and Description |
---|
AbstractSearchEngineConfigurator() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected void |
createSearchEngineListeners(String searchEngineId,
SearchEngine searchEngine,
Destination searchReaderDestination,
Destination searchWriterDestination) |
protected Destination |
createSearchReaderDestination(String searchReaderDestinationName) |
protected Destination |
createSearchWriterDestination(String searchWriterDestinationName) |
void |
destroy() |
protected void |
destroySearchEngine(com.liferay.portal.kernel.search.AbstractSearchEngineConfigurator.SearchEngineRegistration searchEngineRegistration) |
protected abstract String |
getDefaultSearchEngineId() |
protected abstract IndexSearcher |
getIndexSearcher() |
protected abstract IndexWriter |
getIndexWriter() |
protected abstract ClassLoader |
getOperatingClassloader() |
protected abstract SearchEngineHelper |
getSearchEngineHelper() |
protected Destination |
getSearchReaderDestination(MessageBus messageBus,
String searchEngineId) |
protected Destination |
getSearchWriterDestination(MessageBus messageBus,
String searchEngineId) |
protected void |
initialize() |
protected void |
initSearchEngine(String searchEngineId,
SearchEngine searchEngine) |
protected void |
registerInvokerMessageListener(Destination destination,
List<InvokerMessageListener> invokerMessageListeners) |
protected void |
registerSearchEngineMessageListener(String searchEngineId,
SearchEngine searchEngine,
Destination destination,
BaseSearchEngineMessageListener baseSearchEngineMessageListener,
Object manager) |
protected void |
savePreviousSearchEngineListeners(Destination searchReaderDestination,
Destination searchWriterDestination,
com.liferay.portal.kernel.search.AbstractSearchEngineConfigurator.SearchEngineRegistration searchEngineRegistration) |
protected void |
setSearchEngine(String searchEngineId,
SearchEngine searchEngine) |
void |
setSearchEngines(Map<String,SearchEngine> searchEngines) |
public void afterPropertiesSet()
afterPropertiesSet
in interface SearchEngineConfigurator
public void destroy()
destroy
in interface SearchEngineConfigurator
public void setSearchEngines(Map<String,SearchEngine> searchEngines)
setSearchEngines
in interface SearchEngineConfigurator
protected void createSearchEngineListeners(String searchEngineId, SearchEngine searchEngine, Destination searchReaderDestination, Destination searchWriterDestination)
protected Destination createSearchReaderDestination(String searchReaderDestinationName)
protected Destination createSearchWriterDestination(String searchWriterDestinationName)
protected void destroySearchEngine(com.liferay.portal.kernel.search.AbstractSearchEngineConfigurator.SearchEngineRegistration searchEngineRegistration)
protected abstract String getDefaultSearchEngineId()
protected abstract IndexSearcher getIndexSearcher()
protected abstract IndexWriter getIndexWriter()
protected abstract ClassLoader getOperatingClassloader()
protected abstract SearchEngineHelper getSearchEngineHelper()
protected Destination getSearchReaderDestination(MessageBus messageBus, String searchEngineId)
protected Destination getSearchWriterDestination(MessageBus messageBus, String searchEngineId)
protected void initialize()
protected void initSearchEngine(String searchEngineId, SearchEngine searchEngine)
protected void registerInvokerMessageListener(Destination destination, List<InvokerMessageListener> invokerMessageListeners)
protected void registerSearchEngineMessageListener(String searchEngineId, SearchEngine searchEngine, Destination destination, BaseSearchEngineMessageListener baseSearchEngineMessageListener, Object manager)
protected void savePreviousSearchEngineListeners(Destination searchReaderDestination, Destination searchWriterDestination, com.liferay.portal.kernel.search.AbstractSearchEngineConfigurator.SearchEngineRegistration searchEngineRegistration)
protected void setSearchEngine(String searchEngineId, SearchEngine searchEngine)