Class TemplateRepositoryUtility
java.lang.Object
org.tasktide.core.repository.template_repo.TemplateRepositoryUtility
Supports creation of
Template TaskTideRepository,
TaskTideService, and initialize the TaskTideServiceManager-
Method Summary
Modifier and TypeMethodDescriptionjakarta.nosql.TemplateFetch Template for template type (ie DocumentTemplate etc)static TemplateRepositoryUtilityget()Get configured utility, throwing illegal state exception if not already initialized.static voidinitialize(String dbType) Initialize utility with the DB type, throwing an illegal state exception if already initializedvoidIniialize theTaskTideServiceManagerprovideTemplateClass(String dbType) Maps provided NoSQL DB type to Template class
-
Method Details
-
initialize
Initialize utility with the DB type, throwing an illegal state exception if already initialized- Parameters:
dbType-
-
get
Get configured utility, throwing illegal state exception if not already initialized.- Returns:
- TemplateRepositoryUtility
-
fetchTemplate
public jakarta.nosql.Template fetchTemplate()Fetch Template for template type (ie DocumentTemplate etc)- Returns:
- Template
-
provideTemplateClass
-
initServiceManager
public void initServiceManager()Iniialize theTaskTideServiceManager
-