Class CachedTemplateProvider
- java.lang.Object
-
- org.ehrbase.webtemplate.templateprovider.CachedTemplateProvider
-
- All Implemented Interfaces:
TemplateProvider
public class CachedTemplateProvider extends Object implements TemplateProvider
Wraps aTemplateProviderto provide caching.
-
-
Constructor Summary
Constructors Constructor Description CachedTemplateProvider(TemplateProvider rootTemplateProvider, javax.cache.Cache<String,OPERATIONALTEMPLATE> templateCache)Deprecated.CachedTemplateProvider(TemplateProvider rootTemplateProvider, javax.cache.Cache<String,OPERATIONALTEMPLATE> templateCache, javax.cache.Cache<String,WebTemplate> introspectCache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<WebTemplate>buildIntrospect(String templateId)Optional<OPERATIONALTEMPLATE>find(String templateId)
-
-
-
Constructor Detail
-
CachedTemplateProvider
@Deprecated public CachedTemplateProvider(TemplateProvider rootTemplateProvider, javax.cache.Cache<String,OPERATIONALTEMPLATE> templateCache)
Deprecated.- Parameters:
rootTemplateProvider- The warpedTemplateProvidertemplateCache- TheCachewhich is used for caching the templates.
-
CachedTemplateProvider
public CachedTemplateProvider(TemplateProvider rootTemplateProvider, javax.cache.Cache<String,OPERATIONALTEMPLATE> templateCache, javax.cache.Cache<String,WebTemplate> introspectCache)
- Parameters:
rootTemplateProvider- The warpedTemplateProvidertemplateCache- TheCachewhich is used for caching the templates.introspectCache- TheCachewhich is used for caching the templates.
-
-
Method Detail
-
find
public Optional<OPERATIONALTEMPLATE> find(String templateId)
- Specified by:
findin interfaceTemplateProvider
-
buildIntrospect
public Optional<WebTemplate> buildIntrospect(String templateId)
- Specified by:
buildIntrospectin interfaceTemplateProvider
-
-