org.apache.tapestry.services
Interface NamespaceResources

All Known Implementing Classes:
NamespaceResourcesImpl

public interface NamespaceResources

Companion to the standard implementation of INamespace. Defines resources needed by the Namespace instance to operate (these have grown numerous!)

Since:
4.0
Author:
Howard M. Lewis Ship

Method Summary
 ILibrarySpecification findChildLibrarySpecification(org.apache.hivemind.Resource libraryResource, String path, org.apache.hivemind.Location location)
          Finds a child library specification for some parent library specification.
 IComponentSpecification getComponentSpecification(org.apache.hivemind.Resource libraryResource, String specificationPath, org.apache.hivemind.Location location)
          Retrieves a component specification, parsing it as necessary.
 IComponentSpecification getPageSpecification(org.apache.hivemind.Resource libraryResource, String specificationPath, org.apache.hivemind.Location location)
          Retrieves a page specification, parsing it as necessary.
 

Method Detail

findChildLibrarySpecification

ILibrarySpecification findChildLibrarySpecification(org.apache.hivemind.Resource libraryResource,
                                                    String path,
                                                    org.apache.hivemind.Location location)
Finds a child library specification for some parent library specification.

Parameters:
libraryResource - the Resource from which the parent library (or application) specification was loaded
path - the relative path from the parent specification resource to the library specification. As a special case, a path starting with a leading slash is assumed to be on the classpath.
location - TODO
Returns:
the library specification.

getPageSpecification

IComponentSpecification getPageSpecification(org.apache.hivemind.Resource libraryResource,
                                             String specificationPath,
                                             org.apache.hivemind.Location location)
Retrieves a page specification, parsing it as necessary.

Parameters:
libraryResource - the base resource for resolving the path to the page specification; this will be the resource for the library (or application) specification
specificationPath - the path to the specification to be parsed
location - used to report errors
Throws:
org.apache.hivemind.ApplicationRuntimeException - if the specification doesn't exist, is unreadable or invalid.
See Also:
ISpecificationSource.getPageSpecification(Resource)

getComponentSpecification

IComponentSpecification getComponentSpecification(org.apache.hivemind.Resource libraryResource,
                                                  String specificationPath,
                                                  org.apache.hivemind.Location location)
Retrieves a component specification, parsing it as necessary.

Parameters:
libraryResource - the base resource for resolving the path to the page specification; this will be the resource for the library (or application) specification
specificationPath - the path to the specification to be parsed
location - used to report errors
Throws:
org.apache.hivemind.ApplicationRuntimeException - if the specification doesn't exist, is unreadable or invalid.


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