public class MainContext extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
destroy()
Clears the current Singleton instance if it exists and nullifies it.
|
static boolean |
hasFailed()
Checks if the initialization of the MainContext has failed.
|
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.
|
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()
Copyright © 2017–2019. All rights reserved.