Clover coverage report - Code Coverage for tapestry release 4.0.1
Coverage timestamp: Fri Mar 31 2006 09:12:14 EST
file stats: LOC: 82   Methods: 0
NCLOC: 12   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
ISpecificationSource.java - - - -
coverage
 1    // Copyright 2004, 2005 The Apache Software Foundation
 2    //
 3    // Licensed under the Apache License, Version 2.0 (the "License");
 4    // you may not use this file except in compliance with the License.
 5    // You may obtain a copy of the License at
 6    //
 7    // http://www.apache.org/licenses/LICENSE-2.0
 8    //
 9    // Unless required by applicable law or agreed to in writing, software
 10    // distributed under the License is distributed on an "AS IS" BASIS,
 11    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12    // See the License for the specific language governing permissions and
 13    // limitations under the License.
 14   
 15    package org.apache.tapestry.engine;
 16   
 17    import org.apache.hivemind.Resource;
 18    import org.apache.tapestry.INamespace;
 19    import org.apache.tapestry.spec.IComponentSpecification;
 20    import org.apache.tapestry.spec.ILibrarySpecification;
 21   
 22    /**
 23    * Defines access to component specifications.
 24    *
 25    * @see IComponentSpecification
 26    * @author Howard Lewis Ship
 27    */
 28   
 29    public interface ISpecificationSource
 30    {
 31    /**
 32    * Retrieves a component specification, parsing it as necessary.
 33    *
 34    * @param specificationLocation
 35    * the location where the specification may be read from.
 36    * @throws org.apache.hivemind.ApplicationRuntimeException
 37    * if the specification doesn't exist, is unreadable or invalid.
 38    * @since 2.2
 39    */
 40   
 41    public IComponentSpecification getComponentSpecification(Resource specificationLocation);
 42   
 43    /**
 44    * Retrieves a page specification, parsing it as necessary.
 45    *
 46    * @param specificationLocation
 47    * the location where the specification may be read from.
 48    * @throws org.apache.hivemind.ApplicationRuntimeException
 49    * if the specification doesn't exist, is unreadable or invalid.
 50    * @since 2.2
 51    */
 52   
 53    public IComponentSpecification getPageSpecification(Resource specificationLocation);
 54   
 55    /**
 56    * Returns a {@link org.apache.tapestry.spec.LibrarySpecification} with the given path.
 57    *
 58    * @param specificationLocation
 59    * the resource path of the specification to return
 60    * @throws org.apache.hivemind.ApplicationRuntimeException
 61    * if the specification cannot be read
 62    * @since 2.2
 63    */
 64   
 65    public ILibrarySpecification getLibrarySpecification(Resource specificationLocation);
 66   
 67    /**
 68    * Returns the {@link INamespace} for the application.
 69    *
 70    * @since 2.2
 71    */
 72   
 73    public INamespace getApplicationNamespace();
 74   
 75    /**
 76    * Returns the {@link INamespace} for the framework itself.
 77    *
 78    * @since 2.2
 79    */
 80   
 81    public INamespace getFrameworkNamespace();
 82    }