Class CmsTemplateLoaderFacade
Some resource types are actually not loadable themself but require a template
to be processed. This template is attached using the template
property.
Depending on the resource type of the template itself, a loader is then selected that
processed the requested resource. The processing itself might start on the template,
or on the requested resource (this will depend on the loader and the resource type implementation).
- Since:
- 6.0.0
-
Constructor Summary
ConstructorDescriptionCmsTemplateLoaderFacade
(I_CmsResourceLoader loader, CmsResource resource, CmsResource template) Creates a new template loader facade. -
Method Summary
Modifier and TypeMethodDescriptionReturns the loader.Returns the loaders start resource.Returns the resource.Returns the template.Gets the template context.Gets the template name.void
setTemplateContext
(CmsTemplateContext context) Sets the template context.void
setTemplateName
(String templateName) Sets the template name.
-
Constructor Details
-
CmsTemplateLoaderFacade
public CmsTemplateLoaderFacade(I_CmsResourceLoader loader, CmsResource resource, CmsResource template) throws CmsLoaderException Creates a new template loader facade.Some resource types are actually not loadable themself but require a template to be processed. This template is attached using the
template
property. Depending on the resource type of the template itself, a loader is then selected that processed the requested resource. The processing itself might start on the template, or on the requested resource (this will depend on the loader and the resource type implementation).- Parameters:
loader
- the loader to useresource
- the file to usetemplate
- the template to use (ignored if null)- Throws:
CmsLoaderException
- in case the template file does not use a loader that actually supports templates
-
-
Method Details
-
getLoader
Returns the loader.- Returns:
- the loader
-
getLoaderStartResource
Returns the loaders start resource.- Returns:
- the loaders start resource
-
getResource
Returns the resource.- Returns:
- the resource
-
getTemplate
Returns the template.- Returns:
- the template
-
getTemplateContext
Gets the template context.- Returns:
- the template context
-
getTemplateName
Gets the template name.- Returns:
- the template name
-
setTemplateContext
Sets the template context.- Parameters:
context
- the template context
-
setTemplateName
Sets the template name.- Parameters:
templateName
- the new template name
-