org.apache.tapestry.engine
Interface ISpecificationSource

All Known Implementing Classes:
DefaultSpecificationSource

public interface ISpecificationSource

Defines access to component specifications.

Version:
$Id: ISpecificationSource.java,v 1.5 2004/01/19 21:32:13 hlship Exp $
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

public 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

public 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

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


getLibrarySpecification

public 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

public INamespace getApplicationNamespace()
Returns the INamespace for the application.

Since:
2.2

getFrameworkNamespace

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

Since:
2.2