org.apache.tapestry.services.impl
Class ComponentTemplateLoaderImpl

java.lang.Object
  extended by org.apache.tapestry.services.impl.ComponentTemplateLoaderImpl
All Implemented Interfaces:
ComponentTemplateLoader

public class ComponentTemplateLoaderImpl
extends Object
implements ComponentTemplateLoader

Utility service, tapestry.page.ComponentTemplateLoader, which will process the component's template, which involves working through the nested structure of the template and hooking the various static template blocks and components together using IComponent.addBody(IRender)and ITemplateComponent.addOuter(IRender).

Because this service must be reentrant, it acts as a factory for a ComponentTemplateLoaderLogicthat is created (and discarded) for each component whose template is loaded.

Since:
3.0
Author:
Howard Lewis Ship

Constructor Summary
ComponentTemplateLoaderImpl()
           
 
Method Summary
 void loadTemplate(IRequestCycle requestCycle, ITemplateComponent loadComponent)
           
 void setBindingSource(BindingSource bindingSource)
           
 void setLog(Log log)
           
 void setPageLoader(IPageLoader pageLoader)
           
 void setTemplateSource(TemplateSource templateSource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentTemplateLoaderImpl

public ComponentTemplateLoaderImpl()
Method Detail

loadTemplate

public void loadTemplate(IRequestCycle requestCycle,
                         ITemplateComponent loadComponent)
Specified by:
loadTemplate in interface ComponentTemplateLoader

setPageLoader

public void setPageLoader(IPageLoader pageLoader)
Since:
4.0

setLog

public void setLog(Log log)
Since:
4.0

setTemplateSource

public void setTemplateSource(TemplateSource templateSource)
Since:
4.0

setBindingSource

public void setBindingSource(BindingSource bindingSource)
Since:
4.0


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.