Class OntologyServiceFactory<T extends OntologyService>
- java.lang.Object
- 
- org.springframework.beans.factory.config.AbstractFactoryBean<T>
- 
- ubic.gemma.core.ontology.providers.OntologyServiceFactory<T>
 
 
- 
- Type Parameters:
- T- the type of ontology service this factory produces
 - All Implemented Interfaces:
- Aware,- BeanClassLoaderAware,- BeanFactoryAware,- DisposableBean,- FactoryBean<T>,- InitializingBean
 
 public class OntologyServiceFactory<T extends OntologyService> extends AbstractFactoryBean<T> Factory bean for baseCode'sOntologyService.
- 
- 
Field Summary- 
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBeanlogger
 
- 
 - 
Constructor SummaryConstructors Constructor Description OntologyServiceFactory(Class<T> ontologyServiceClass)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TcreateInstance()protected voiddestroyInstance(T instance)Class<?>getObjectType()booleanisSingleton()voidsetAdditionalPropertyUris(Set<String> additionalPropertyUris)Set the URIs used for inferring additional properties.voidsetAutoLoad(boolean autoLoad)Enable loading of ontologies on startup.voidsetEnableSearch(boolean enableSearch)Enable full-text search for the ontology.voidsetExcludedWordsFromStemming(Set<String> excludedWordsFromStemming)Set the list of words that should be excluded from stemming.voidsetForceIndexing(boolean forceIndexing)Force indexing for full-text search.voidsetForceLoad(boolean forceLoad)Force loading, regardless of theload.{name}Ontologyproperty value.voidsetInferenceMode(OntologyService.InferenceMode inferenceMode)Set the inference mode for the ontology.voidsetLanguageLevel(OntologyService.LanguageLevel languageLevel)Set the supported OWL language level for the ontology.voidsetLoadInBackground(boolean loadInBackground)Initialize the service using a background thread.voidsetProcessImports(boolean processImports)Enable import processing for the ontology.voidsetTaskExecutor(TaskExecutor taskExecutor)Set the task executor used for initializing ontology service in background.- 
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBeanafterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, setBeanClassLoader, setBeanFactory, setSingleton
 
- 
 
- 
- 
- 
Method Detail- 
setAutoLoadpublic void setAutoLoad(boolean autoLoad) Enable loading of ontologies on startup.
 - 
setForceLoadpublic void setForceLoad(boolean forceLoad) Force loading, regardless of theload.{name}Ontologyproperty value.
 - 
setForceIndexingpublic void setForceIndexing(boolean forceIndexing) Force indexing for full-text search.
 - 
setLoadInBackgroundpublic void setLoadInBackground(boolean loadInBackground) Initialize the service using a background thread.If an executor is supplied via setTaskExecutor(TaskExecutor), it will be used for initializing the ontology, otherwise one thread per ontology will be created viaOntologyService.startInitializationThread(boolean, boolean).If false, the ontology will be initialized in the foreground. This will dramatically impact the startup time of Gemma. 
 - 
setTaskExecutorpublic void setTaskExecutor(TaskExecutor taskExecutor) Set the task executor used for initializing ontology service in background.
 - 
setLanguageLevelpublic void setLanguageLevel(OntologyService.LanguageLevel languageLevel) Set the supported OWL language level for the ontology.
 - 
setInferenceModepublic void setInferenceMode(OntologyService.InferenceMode inferenceMode) Set the inference mode for the ontology.
 - 
setEnableSearchpublic void setEnableSearch(boolean enableSearch) Enable full-text search for the ontology.
 - 
setExcludedWordsFromStemmingpublic void setExcludedWordsFromStemming(@Nullable Set<String> excludedWordsFromStemming) Set the list of words that should be excluded from stemming.
 - 
setProcessImportspublic void setProcessImports(boolean processImports) Enable import processing for the ontology.
 - 
setAdditionalPropertyUrispublic void setAdditionalPropertyUris(@Nullable Set<String> additionalPropertyUris) Set the URIs used for inferring additional properties.If null, baseCode's defaults will be used. You may use an empty set to disable additional properties inference. 
 - 
getObjectTypepublic Class<?> getObjectType() - Specified by:
- getObjectTypein interface- FactoryBean<T extends OntologyService>
- Specified by:
- getObjectTypein class- AbstractFactoryBean<T extends OntologyService>
 
 - 
isSingletonpublic boolean isSingleton() - Specified by:
- isSingletonin interface- FactoryBean<T extends OntologyService>
- Overrides:
- isSingletonin class- AbstractFactoryBean<T extends OntologyService>
 
 - 
createInstanceprotected T createInstance() throws Exception - Specified by:
- createInstancein class- AbstractFactoryBean<T extends OntologyService>
- Throws:
- Exception
 
 - 
destroyInstanceprotected void destroyInstance(T instance) - Overrides:
- destroyInstancein class- AbstractFactoryBean<T extends OntologyService>
 
 
- 
 
-