public class NamespaceResourcesImpl extends java.lang.Object implements NamespaceResources
NamespaceResources.| Constructor and Description |
|---|
NamespaceResourcesImpl(ISpecificationSource source,
AssetSource assetSource) |
| Modifier and Type | Method and Description |
|---|---|
ILibrarySpecification |
findChildLibrarySpecification(org.apache.hivemind.Resource parentResource,
java.lang.String path,
org.apache.hivemind.Location location)
Finds a child library specification for some parent library specification.
|
IComponentSpecification |
getComponentSpecification(org.apache.hivemind.Resource resource,
java.lang.String specificationPath,
org.apache.hivemind.Location location)
Retrieves a component specification, parsing it as necessary.
|
IComponentSpecification |
getPageSpecification(org.apache.hivemind.Resource resource,
java.lang.String specificationPath,
org.apache.hivemind.Location location)
Retrieves a page specification, parsing it as necessary.
|
public NamespaceResourcesImpl(ISpecificationSource source, AssetSource assetSource)
public ILibrarySpecification findChildLibrarySpecification(org.apache.hivemind.Resource parentResource, java.lang.String path, org.apache.hivemind.Location location)
NamespaceResourcesfindChildLibrarySpecification in interface NamespaceResourcesparentResource - the Resource from which the parent library (or application) specification
was loadedpath - 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 - TODOpublic IComponentSpecification getPageSpecification(org.apache.hivemind.Resource resource, java.lang.String specificationPath, org.apache.hivemind.Location location)
NamespaceResourcesgetPageSpecification in interface NamespaceResourcesresource - the base resource for resolving the path to the page specification; this will be
the resource for the library (or application) specificationspecificationPath - the path to the specification to be parsedlocation - used to report errorsISpecificationSource.getPageSpecification(Resource)public IComponentSpecification getComponentSpecification(org.apache.hivemind.Resource resource, java.lang.String specificationPath, org.apache.hivemind.Location location)
NamespaceResourcesgetComponentSpecification in interface NamespaceResourcesresource - the base resource for resolving the path to the page specification; this will be
the resource for the library (or application) specificationspecificationPath - the path to the specification to be parsedlocation - used to report errors