|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.pageload.PageLoader
public class PageLoader
Implementation of tapestry.page.PageLoader. Runs the process of building the component hierarchy for an entire page.
This implementation is not threadsafe, therefore the pooled service model must be used.
| Constructor Summary | |
|---|---|
PageLoader()
|
|
| 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). |
void |
initializeService()
|
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. |
void |
setAssetSource(AssetSource assetSource)
|
void |
setBindingSource(BindingSource bindingSource)
|
void |
setClassResolver(org.apache.hivemind.ClassResolver classResolver)
|
void |
setComponentClassProvider(ComponentClassProvider componentClassProvider)
|
void |
setComponentConstructorFactory(ComponentConstructorFactory componentConstructorFactory)
|
void |
setComponentPropertySource(ComponentPropertySource componentPropertySource)
|
void |
setComponentResolver(ComponentSpecificationResolver resolver)
|
void |
setComponentTemplateLoader(ComponentTemplateLoader componentTemplateLoader)
|
void |
setComponentTypeVisitor(IComponentVisitor visitor)
|
void |
setEstablishDefaultParameterValuesVisitor(IComponentVisitor establishDefaultParameterValuesVisitor)
|
void |
setEventConnectionVisitor(IComponentVisitor eventConnectionVisitor)
|
void |
setLog(Log log)
|
void |
setPageClassProvider(ComponentClassProvider pageClassProvider)
|
void |
setThreadLocale(org.apache.hivemind.service.ThreadLocale threadLocale)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PageLoader()
| Method Detail |
|---|
public void initializeService()
public IComponent createImplicitComponent(IRequestCycle cycle,
IComponent container,
String componentId,
String componentType,
org.apache.hivemind.Location location)
createImplicitComponent in interface IPageLoaderComponentTemplateLoaderImpl
public IPage loadPage(String name,
INamespace namespace,
IRequestCycle cycle,
IComponentSpecification specification)
IPageLoaderIPageSourceto load a specific page. This method
is not reentrant. The page is immediately attached to the
engine.
loadPage in interface IPageLoadername - the simple (unqualified) name of the page to loadnamespace - 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
public void loadTemplateForComponent(IRequestCycle cycle,
ITemplateComponent component)
IPageLoaderIComponent.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.
loadTemplateForComponent in interface IPageLoaderITemplateComponentpublic void setLog(Log log)
public void setComponentResolver(ComponentSpecificationResolver resolver)
public void setBindingSource(BindingSource bindingSource)
public void setComponentTemplateLoader(ComponentTemplateLoader componentTemplateLoader)
public void setEstablishDefaultParameterValuesVisitor(IComponentVisitor establishDefaultParameterValuesVisitor)
public void setEventConnectionVisitor(IComponentVisitor eventConnectionVisitor)
public void setComponentTypeVisitor(IComponentVisitor visitor)
public void setComponentConstructorFactory(ComponentConstructorFactory componentConstructorFactory)
public void setAssetSource(AssetSource assetSource)
public void setPageClassProvider(ComponentClassProvider pageClassProvider)
public void setClassResolver(org.apache.hivemind.ClassResolver classResolver)
public void setComponentClassProvider(ComponentClassProvider componentClassProvider)
public void setThreadLocale(org.apache.hivemind.service.ThreadLocale threadLocale)
public void setComponentPropertySource(ComponentPropertySource componentPropertySource)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||