org.apache.tapestry.resolver
Interface ISpecificationResolverDelegate


public interface ISpecificationResolverDelegate

Delegate interface used when a page or component specification can not be found by the normal means. This allows hooks to support specifications from unusual locations, or generated on the fly.

The delegate must be coded in a threadsafe manner.

Since:
3.0
Author:
Howard Lewis Ship

Method Summary
 IComponentSpecification findComponentSpecification(IRequestCycle cycle, INamespace namespace, String type)
          Invoked by PageSpecificationResolver to find the indicated component specification.
 IComponentSpecification findPageSpecification(IRequestCycle cycle, INamespace namespace, String simplePageName)
          Invoked by PageSpecificationResolver to find the indicated page specification.
 

Method Detail

findPageSpecification

IComponentSpecification findPageSpecification(IRequestCycle cycle,
                                              INamespace namespace,
                                              String simplePageName)
Invoked by PageSpecificationResolver to find the indicated page specification. Returns the specification, or null. The specification, if returned, will be cached (this represents a change from release 3.0 to release 4.0).

Parameters:
cycle - used to gain access to framework and Servlet API objects
namespace - the namespace containing the page
simplePageName - the name of the page (without any namespace prefix)

findComponentSpecification

IComponentSpecification findComponentSpecification(IRequestCycle cycle,
                                                   INamespace namespace,
                                                   String type)
Invoked by PageSpecificationResolver to find the indicated component specification. Returns the specification, or null. The specification will be cached (this represents a change from release 3.0 to release 4.0).

Parameters:
cycle - used to gain access to framework and Servlet API objects
namespace - the namespace containing the component
type - the component type (without any namespace prefix)


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