|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.loader.CmsTemplateLoaderFacade
public class CmsTemplateLoaderFacade
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).
| Constructor Summary | |
|---|---|
CmsTemplateLoaderFacade(I_CmsResourceLoader loader,
CmsResource resource,
CmsResource template)
Creates a new template loader facade. |
|
| Method Summary | |
|---|---|
I_CmsResourceLoader |
getLoader()
Returns the loader. |
CmsResource |
getLoaderStartResource()
Returns the loaders start resource. |
CmsResource |
getResource()
Returns the resource. |
CmsResource |
getTemplate()
Returns the template. |
CmsTemplateContext |
getTemplateContext()
Gets the template context. |
java.lang.String |
getTemplateName()
Gets the template name. |
void |
setTemplateContext(CmsTemplateContext context)
Sets the template context. |
void |
setTemplateName(java.lang.String templateName)
Sets the template name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmsTemplateLoaderFacade(I_CmsResourceLoader loader,
CmsResource resource,
CmsResource template)
throws CmsLoaderException
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).
loader - the loader to useresource - the file to usetemplate - the template to use (ignored if null)
CmsLoaderException - in case the template file does not use a loader that actually supports templates| Method Detail |
|---|
public I_CmsResourceLoader getLoader()
public CmsResource getLoaderStartResource()
public CmsResource getResource()
public CmsResource getTemplate()
public CmsTemplateContext getTemplateContext()
public java.lang.String getTemplateName()
public void setTemplateContext(CmsTemplateContext context)
context - the template contextpublic void setTemplateName(java.lang.String templateName)
templateName - the new template name
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||