Clover coverage report - Code Coverage for tapestry release 4.0.1
Coverage timestamp: Fri Mar 31 2006 09:12:14 EST
file stats: LOC: 70   Methods: 5
NCLOC: 37   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
RequestCycleEnvironment.java - 100% 100% 100%
coverage
 1    // Copyright 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.ErrorHandler;
 18    import org.apache.tapestry.IEngine;
 19    import org.apache.tapestry.record.PropertyPersistenceStrategySource;
 20    import org.apache.tapestry.services.AbsoluteURLBuilder;
 21    import org.apache.tapestry.services.Infrastructure;
 22    import org.apache.tapestry.util.QueryParameterMap;
 23   
 24    /**
 25    * An object that contains all the invariant parameters to the
 26    * {@link org.apache.tapestry.engine.RequestCycle#RequestCycle(IEngine, QueryParameterMap, IEngineService, IMonitor, RequestCycleEnvironment)}
 27    * constructor.
 28    *
 29    * @author Howard M. Lewis Ship
 30    * @since 4.0
 31    */
 32    public class RequestCycleEnvironment
 33    {
 34    private final Infrastructure _infrastructure;
 35   
 36    private final PropertyPersistenceStrategySource _strategySource;
 37   
 38    private final AbsoluteURLBuilder _absoluteURLBuilder;
 39   
 40    private final ErrorHandler _errorHandler;
 41   
 42  82 public RequestCycleEnvironment(ErrorHandler errorHandler, Infrastructure infrastructure,
 43    PropertyPersistenceStrategySource strategySource, AbsoluteURLBuilder absoluteURLBuilder)
 44    {
 45  82 _errorHandler = errorHandler;
 46  82 _infrastructure = infrastructure;
 47  82 _strategySource = strategySource;
 48  82 _absoluteURLBuilder = absoluteURLBuilder;
 49    }
 50   
 51  250 public AbsoluteURLBuilder getAbsoluteURLBuilder()
 52    {
 53  250 return _absoluteURLBuilder;
 54    }
 55   
 56  250 public ErrorHandler getErrorHandler()
 57    {
 58  250 return _errorHandler;
 59    }
 60   
 61  250 public Infrastructure getInfrastructure()
 62    {
 63  250 return _infrastructure;
 64    }
 65   
 66  250 public PropertyPersistenceStrategySource getStrategySource()
 67    {
 68  250 return _strategySource;
 69    }
 70    }