org.apache.tapestry.engine
Interface ISpecificationSource

All Known Implementing Classes:
DefaultSpecificationSource

public interface ISpecificationSource

Defines access to component specifications.

Version:
$Id: ISpecificationSource.java 243791 2004-02-19 17:38:13Z hlship $
Author:
Howard Lewis Ship
See Also:
IComponentSpecification

Method Summary
 INamespace getApplicationNamespace()
          Returns the INamespace for the application.
 IComponentSpecification getComponentSpecification(IResourceLocation specificationLocation)
          Retrieves a component specification, parsing it as necessary.
 INamespace getFrameworkNamespace()
          Returns the INamespace for the framework itself.
 ILibrarySpecification getLibrarySpecification(IResourceLocation specificationLocation)
          Returns a LibrarySpecification with the given path.
 IComponentSpecification getPageSpecification(IResourceLocation specificationLocation)
          Retrieves a component specification, parsing it as necessary.
 void reset()
          Invoked to have the source clear any internal cache.
 

Method Detail

getComponentSpecification

IComponentSpecification getComponentSpecification(IResourceLocation specificationLocation)
Retrieves a component specification, parsing it as necessary.

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

getPageSpecification

IComponentSpecification getPageSpecification(IResourceLocation specificationLocation)
Retrieves a component specification, parsing it as necessary.

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

reset

void reset()
Invoked to have the source clear any internal cache. This is most often used when debugging an application.


getLibrarySpecification

ILibrarySpecification getLibrarySpecification(IResourceLocation specificationLocation)
Returns a LibrarySpecification with the given path.

Parameters:
specificationLocation - the resource path of the specification to return
Throws:
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