org.apache.tapestry.services.impl
Class NamespaceResourcesImpl

java.lang.Object
  extended by org.apache.tapestry.services.impl.NamespaceResourcesImpl
All Implemented Interfaces:
NamespaceResources

public class NamespaceResourcesImpl
extends Object
implements NamespaceResources

Implementation of NamespaceResources.

Author:
Howard M. Lewis Ship

Constructor Summary
NamespaceResourcesImpl(ISpecificationSource source, AssetSource assetSource)
           
 
Method Summary
 ILibrarySpecification findChildLibrarySpecification(org.apache.hivemind.Resource parentResource, String path, org.apache.hivemind.Location location)
          Finds a child library specification for some parent library specification.
 IComponentSpecification getComponentSpecification(org.apache.hivemind.Resource resource, String specificationPath, org.apache.hivemind.Location location)
          Retrieves a component specification, parsing it as necessary.
 IComponentSpecification getPageSpecification(org.apache.hivemind.Resource resource, String specificationPath, org.apache.hivemind.Location location)
          Retrieves a page specification, parsing it as necessary.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamespaceResourcesImpl

public NamespaceResourcesImpl(ISpecificationSource source,
                              AssetSource assetSource)
Method Detail

findChildLibrarySpecification

public ILibrarySpecification findChildLibrarySpecification(org.apache.hivemind.Resource parentResource,
                                                           String path,
                                                           org.apache.hivemind.Location location)
Description copied from interface: NamespaceResources
Finds a child library specification for some parent library specification.

Specified by:
findChildLibrarySpecification in interface NamespaceResources
Parameters:
parentResource - 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

public IComponentSpecification getPageSpecification(org.apache.hivemind.Resource resource,
                                                    String specificationPath,
                                                    org.apache.hivemind.Location location)
Description copied from interface: NamespaceResources
Retrieves a page specification, parsing it as necessary.

Specified by:
getPageSpecification in interface NamespaceResources
Parameters:
resource - 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
See Also:
ISpecificationSource.getPageSpecification(Resource)

getComponentSpecification

public IComponentSpecification getComponentSpecification(org.apache.hivemind.Resource resource,
                                                         String specificationPath,
                                                         org.apache.hivemind.Location location)
Description copied from interface: NamespaceResources
Retrieves a component specification, parsing it as necessary.

Specified by:
getComponentSpecification in interface NamespaceResources
Parameters:
resource - 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


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