public final class MainContext extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
destroy()
Clears the current Singleton instance if it exists and nullifies it.
|
boolean |
equals(Object o) |
File |
getCacheFolder() |
Configuration |
getConfiguration() |
DeploymentType |
getDeploymentType() |
ETLManager |
getEtlManager() |
LoaderRegistry |
getLoaderRegistry() |
HarvesterLog |
getLog() |
File |
getLogFile() |
MavenUtils |
getMavenUtils() |
String |
getModuleName() |
Scheduler |
getScheduler() |
static boolean |
hasFailed()
Checks if the initialization of the MainContext has failed.
|
int |
hashCode() |
static void |
init(Class<? extends ContextListener> callerClass,
Supplier<String> repositoryNameSupplier,
Supplier<List<? extends AbstractETL<?,?>>> etlSupplier,
List<Class<? extends ILoader<?>>> loaderClasses)
Constructs an instance of the MainContext in a dedicated thread.
|
static boolean |
isInitialized()
Checks if the initialization phase of the MainContext has finished.
|
String |
toString() |
public static void init(Class<? extends ContextListener> callerClass, Supplier<String> repositoryNameSupplier, Supplier<List<? extends AbstractETL<?,?>>> etlSupplier, List<Class<? extends ILoader<?>>> loaderClasses)
callerClass - the class of the object that called this functionrepositoryNameSupplier - a getter function for retrieving the name of the targeted repositoryetlSupplier - a function that provides all AbstractETLs required for harvestingloaderClasses - a list of ILoader classes for loading documents to a search indexpublic static boolean isInitialized()
public static boolean hasFailed()
public static void destroy()
public DeploymentType getDeploymentType()
public File getCacheFolder()
public File getLogFile()
public HarvesterLog getLog()
public String getModuleName()
public ETLManager getEtlManager()
public Configuration getConfiguration()
public LoaderRegistry getLoaderRegistry()
public Scheduler getScheduler()
public MavenUtils getMavenUtils()
Copyright © 2017–2019. All rights reserved.