public interface NamespaceResources
implementation
of
INamespace
. Defines resources needed by the Namespace instance to
operate (these have grown numerous!)Modifier and Type | Method and Description |
---|---|
ILibrarySpecification |
findChildLibrarySpecification(org.apache.hivemind.Resource libraryResource,
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 libraryResource,
java.lang.String specificationPath,
org.apache.hivemind.Location location)
Retrieves a component specification, parsing it as necessary.
|
IComponentSpecification |
getPageSpecification(org.apache.hivemind.Resource libraryResource,
java.lang.String specificationPath,
org.apache.hivemind.Location location)
Retrieves a page specification, parsing it as necessary.
|
ILibrarySpecification findChildLibrarySpecification(org.apache.hivemind.Resource libraryResource, java.lang.String path, org.apache.hivemind.Location location)
libraryResource
- 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
- TODOIComponentSpecification getPageSpecification(org.apache.hivemind.Resource libraryResource, java.lang.String specificationPath, org.apache.hivemind.Location location)
libraryResource
- 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 errorsorg.apache.hivemind.ApplicationRuntimeException
- if the specification doesn't exist, is unreadable or invalid.ISpecificationSource.getPageSpecification(Resource)
IComponentSpecification getComponentSpecification(org.apache.hivemind.Resource libraryResource, java.lang.String specificationPath, org.apache.hivemind.Location location)
libraryResource
- 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 errorsorg.apache.hivemind.ApplicationRuntimeException
- if the specification doesn't exist, is unreadable or invalid.