org.apache.tapestry.resolver
Class PageSpecificationResolverImpl

java.lang.Object
  extended by org.apache.tapestry.resolver.AbstractSpecificationResolver
      extended by org.apache.tapestry.resolver.PageSpecificationResolverImpl
All Implemented Interfaces:
PageSpecificationResolver

public class PageSpecificationResolverImpl
extends AbstractSpecificationResolver
implements PageSpecificationResolver

Performs the tricky work of resolving a page name to a page specification. The search for pages in the application namespace is the most complicated, since Tapestry searches for pages that aren't explicitly defined in the application specification. The search, based on the simple-name of the page, goes as follows:

Pages in a component library are searched for in a more abbreviated fashion:

Since:
3.0
Author:
Howard Lewis Ship
See Also:
IPageSource

Constructor Summary
PageSpecificationResolverImpl()
           
 
Method Summary
 String getSimplePageName()
          Returns just the name of the page, unqualified by any namespace.
 void initializeService()
           
protected  void reset()
          Clears the namespace and specification properties.
 void resolve(IRequestCycle cycle, String prefixedName)
          Resolve the name (which may have a library id prefix) to a namespace (see AbstractSpecificationResolver.getNamespace()) and a specification (see AbstractSpecificationResolver.getSpecification()).
 void setComponentPropertySource(ComponentPropertySource componentPropertySource)
           
 void setLog(Log log)
           
 
Methods inherited from class org.apache.tapestry.resolver.AbstractSpecificationResolver
findNamespaceForId, getApplicationNamespace, getContextRoot, getDelegate, getFrameworkNamespace, getNamespace, getSpecification, getSpecificationSource, getWebInfAppLocation, getWebInfLocation, setApplicationId, setContextRoot, setDelegate, setNamespace, setSpecification, setSpecificationSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.tapestry.resolver.PageSpecificationResolver
getNamespace, getSpecification
 

Constructor Detail

PageSpecificationResolverImpl

public PageSpecificationResolverImpl()
Method Detail

initializeService

public void initializeService()
Overrides:
initializeService in class AbstractSpecificationResolver

reset

protected void reset()
Description copied from class: AbstractSpecificationResolver
Clears the namespace and specification properties.

Overrides:
reset in class AbstractSpecificationResolver

resolve

public void resolve(IRequestCycle cycle,
                    String prefixedName)
Resolve the name (which may have a library id prefix) to a namespace (see AbstractSpecificationResolver.getNamespace()) and a specification (see AbstractSpecificationResolver.getSpecification()).

Specified by:
resolve in interface PageSpecificationResolver
Throws:
org.apache.hivemind.ApplicationRuntimeException - if the name cannot be resolved

getSimplePageName

public String getSimplePageName()
Description copied from interface: PageSpecificationResolver
Returns just the name of the page, unqualified by any namespace.

Specified by:
getSimplePageName in interface PageSpecificationResolver

setLog

public void setLog(Log log)
Since:
4.0

setComponentPropertySource

public void setComponentPropertySource(ComponentPropertySource componentPropertySource)
Since:
4.0


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