public abstract class ContextListener extends Object implements javax.servlet.ServletContextListener
WebListener,
AbstractETL| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOGGER |
| Constructor and Description |
|---|
ContextListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent sce)
This method is called when the server shuts down.
|
void |
contextInitialized(javax.servlet.ServletContextEvent sce)
This method is called when the server is set up.
|
protected abstract List<? extends AbstractETL<?,?>> |
createETLs()
Creates a list of AbstractETL implementations that can be chosen to extract, transform and load
data from the targeted repository.
|
protected List<Class<? extends ILoader<?>>> |
getLoaderClasses()
Creates a list of ILoader implementations that can be chosen to transfer data to the search index.
|
protected String |
getRepositoryName()
Retrieves the name of the repository that is to be harvested.
|
protected String |
getServiceName()
Retrieves the name of this harvester service.
|
protected void |
onResetContext(ResetContextEvent event)
This event listener is called when the harvester service is reset.
|
protected String getServiceName()
protected String getRepositoryName()
protected abstract List<? extends AbstractETL<?,?>> createETLs()
protected List<Class<? extends ILoader<?>>> getLoaderClasses()
public void contextInitialized(javax.servlet.ServletContextEvent sce)
contextInitialized in interface javax.servlet.ServletContextListenersce - the servlet context event that was initializedMainContextpublic void contextDestroyed(javax.servlet.ServletContextEvent sce)
contextDestroyed in interface javax.servlet.ServletContextListenersce - the servlet context event that was destroyedprotected void onResetContext(ResetContextEvent event)
event - the event that triggered the callbackCopyright © 2017–2019. All rights reserved.