org.apache.tapestry.resolver
Class PageSpecificationResolver

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

public class PageSpecificationResolver
extends AbstractSpecificationResolver

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
Version:
$Id: PageSpecificationResolver.java 243791 2004-02-19 17:38:13Z hlship $
Author:
Howard Lewis Ship
See Also:
IPageSource

Constructor Summary
PageSpecificationResolver(IRequestCycle cycle)
           
 
Method Summary
 String getSimplePageName()
           
protected  void reset()
          Clears the namespace, specification and simpleName 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()).
 
Methods inherited from class org.apache.tapestry.resolver.AbstractSpecificationResolver
discardFromPool, getApplicationRootLocation, getDelegate, getNamespace, getSpecification, getSpecificationSource, getWebInfAppLocation, getWebInfLocation, resetForPool, setNamespace, setSpecification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageSpecificationResolver

public PageSpecificationResolver(IRequestCycle cycle)
Method Detail

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()).

Throws:
ApplicationRuntimeException - if the name cannot be resolved

getSimplePageName

public String getSimplePageName()

reset

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

Overrides:
reset in class AbstractSpecificationResolver