org.apache.tapestry.resolver
Interface ComponentSpecificationResolver

All Known Implementing Classes:
ComponentSpecificationResolverImpl

public interface ComponentSpecificationResolver

Service interface for locating component specifications.

Since:
4.0
Author:
Howard Lewis Ship

Method Summary
 INamespace getNamespace()
          The namespace containing the resolved component.
 IComponentSpecification getSpecification()
          The specification resolved by the resolve() method.
 String getType()
          Returns the unqualified type of the component (i.e., with any namespace prefix stripped off).
 void resolve(IRequestCycle cycle, INamespace containerNamespace, String type, org.apache.hivemind.Location location)
          Passed the namespace of a container (to resolve the type in) and the type to resolve, performs the processing.
 void resolve(IRequestCycle cycle, INamespace containerNamespace, String libraryId, String type, org.apache.hivemind.Location location)
          Like resolve(org.apache.tapestry.IRequestCycle, org.apache.tapestry.INamespace, java.lang.String, Location), but used when the type has already been parsed into a library id and a simple type.
 

Method Detail

resolve

void resolve(IRequestCycle cycle,
             INamespace containerNamespace,
             String type,
             org.apache.hivemind.Location location)
Passed the namespace of a container (to resolve the type in) and the type to resolve, performs the processing. A "bare type" (without a library prefix) may be in the containerNamespace, or the framework namespace (a search occurs in that order).

Parameters:
cycle - current request cycle
containerNamespace - namespace that may contain a library referenced in the type
type - the component specification to find, either a simple name, or prefixed with a library id (defined for the container namespace)
See Also:
getNamespace(), getSpecification()

resolve

void resolve(IRequestCycle cycle,
             INamespace containerNamespace,
             String libraryId,
             String type,
             org.apache.hivemind.Location location)
Like resolve(org.apache.tapestry.IRequestCycle, org.apache.tapestry.INamespace, java.lang.String, Location), but used when the type has already been parsed into a library id and a simple type.

Parameters:
cycle - current request cycle
containerNamespace - namespace that may contain a library referenced in the type
libraryId - the library id within the container namespace, or null
type - the component specification to find as a simple name (without a library prefix)
location - of reference to be resolved
Throws:
org.apache.hivemind.ApplicationRuntimeException - if the type cannot be resolved

getSpecification

IComponentSpecification getSpecification()
The specification resolved by the resolve() method.


getNamespace

INamespace getNamespace()
The namespace containing the resolved component.


getType

String getType()
Returns the unqualified type of the component (i.e., with any namespace prefix stripped off).



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