org.apache.tapestry.engine
Interface IPageLoader

All Known Implementing Classes:
PageLoader

public interface IPageLoader

Interface exposed to components as they are loaded by the page loader.

Author:
Howard Lewis Ship
See Also:
IComponent.finishLoad(IRequestCycle, IPageLoader, org.apache.tapestry.spec.IComponentSpecification)

Method Summary
 IComponent createImplicitComponent(IRequestCycle cycle, IComponent container, String componentId, String componentType, org.apache.hivemind.Location location)
          Invoked to create an implicit component (one which is defined in the containing component's template, rather that in the containing component's specification).
 IPage loadPage(String name, INamespace namespace, IRequestCycle cycle, IComponentSpecification specification)
          Invoked by the IPageSourceto load a specific page.
 void loadTemplateForComponent(IRequestCycle cycle, ITemplateComponent component)
          Invoked by a component (from within its IComponent.finishLoad(IRequestCycle, IPageLoader, IComponentSpecification)method) to load the template for the component.
 

Method Detail

createImplicitComponent

IComponent createImplicitComponent(IRequestCycle cycle,
                                   IComponent container,
                                   String componentId,
                                   String componentType,
                                   org.apache.hivemind.Location location)
Invoked to create an implicit component (one which is defined in the containing component's template, rather that in the containing component's specification).

Since:
3.0
See Also:
ComponentTemplateLoaderImpl

loadPage

IPage loadPage(String name,
               INamespace namespace,
               IRequestCycle cycle,
               IComponentSpecification specification)
Invoked by the IPageSourceto load a specific page. This method is not reentrant. The page is immediately attached to the engine.

Parameters:
name - the simple (unqualified) name of the page to load
namespace - from which the page is to be loaded (used when resolving components embedded by the page)
cycle - the request cycle the page is initially loaded for (this is used to define the locale of the new page, and provide access to the corect specification source, etc.).
specification - the specification for the page

loadTemplateForComponent

void loadTemplateForComponent(IRequestCycle cycle,
                              ITemplateComponent component)
Invoked by a component (from within its IComponent.finishLoad(IRequestCycle, IPageLoader, IComponentSpecification)method) to load the template for the component. This will result in new components being created, and the "outers" of the component being updated.

Since:
4.0
See Also:
ITemplateComponent


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