Class CmsTemplateLoaderFacade

java.lang.Object
org.opencms.loader.CmsTemplateLoaderFacade

public class CmsTemplateLoaderFacade extends Object
Facade object that provides access to the template loader for a resource.

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 Details

    • CmsTemplateLoaderFacade

      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 use
      resource - the file to use
      template - 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