Class CachedTemplateProvider
java.lang.Object
org.ehrbase.openehr.sdk.webtemplate.templateprovider.CachedTemplateProvider
- All Implemented Interfaces:
TemplateProvider
Wraps a
TemplateProvider to provide caching.-
Constructor Summary
ConstructorsConstructorDescriptionCachedTemplateProvider(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
-
Constructor Details
-
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 Details
-
find
- Specified by:
findin interfaceTemplateProvider
-
buildIntrospect
- Specified by:
buildIntrospectin interfaceTemplateProvider
-
CachedTemplateProvider(TemplateProvider, Cache, Cache)