org.apache.tapestry.engine
Interface ISpecificationSource

All Known Implementing Classes:
SpecificationSourceImpl

public interface ISpecificationSource

Defines access to component specifications.

Author:
Howard Lewis Ship
See Also:
IComponentSpecification

Method Summary
 INamespace getApplicationNamespace()
          Returns the INamespace for the application.
 IComponentSpecification getComponentSpecification(org.apache.hivemind.Resource specificationLocation)
          Retrieves a component specification, parsing it as necessary.
 INamespace getFrameworkNamespace()
          Returns the INamespace for the framework itself.
 ILibrarySpecification getLibrarySpecification(org.apache.hivemind.Resource specificationLocation)
          Returns a LibrarySpecification with the given path.
 IComponentSpecification getPageSpecification(org.apache.hivemind.Resource specificationLocation)
          Retrieves a page specification, parsing it as necessary.
 

Method Detail

getComponentSpecification

IComponentSpecification getComponentSpecification(org.apache.hivemind.Resource specificationLocation)
Retrieves a component specification, parsing it as necessary.

Parameters:
specificationLocation - the location where the specification may be read from.
Throws:
org.apache.hivemind.ApplicationRuntimeException - if the specification doesn't exist, is unreadable or invalid.
Since:
2.2

getPageSpecification

IComponentSpecification getPageSpecification(org.apache.hivemind.Resource specificationLocation)
Retrieves a page specification, parsing it as necessary.

Parameters:
specificationLocation - the location where the specification may be read from.
Throws:
org.apache.hivemind.ApplicationRuntimeException - if the specification doesn't exist, is unreadable or invalid.
Since:
2.2

getLibrarySpecification

ILibrarySpecification getLibrarySpecification(org.apache.hivemind.Resource specificationLocation)
Returns a LibrarySpecification with the given path.

Parameters:
specificationLocation - the resource path of the specification to return
Throws:
org.apache.hivemind.ApplicationRuntimeException - if the specification cannot be read
Since:
2.2

getApplicationNamespace

INamespace getApplicationNamespace()
Returns the INamespace for the application.

Since:
2.2

getFrameworkNamespace

INamespace getFrameworkNamespace()
Returns the INamespace for the framework itself.

Since:
2.2


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