org.apache.tapestry.resolver
Interface ISpecificationResolverDelegate

All Known Implementing Classes:
NullSpecificationResolverDelegate

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
Version:
$Id: ISpecificationResolverDelegate.java 243791 2004-02-19 17:38:13Z hlship $
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, is not cached by Tapestry (it is up to the delegate to cache the specification if desired).

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, if returned, is not cached by Tapestry (it is up to the delegate to cache the specification if desired).

The delegate must be coded in a threadsafe manner.

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)